{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pymysql\n",
    "from  sqlalchemy import create_engine\n",
    "import pandas as pd \n",
    "import datetime"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 创建python和sql连接"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "#用pymysql链接\n",
    "conn1 = pymysql.Connect(\n",
    "    host = \"localhost\",\n",
    "    port = 3306,\n",
    "    user = \"root\",\n",
    "    password = \"123456\",\n",
    "    database = \"work_sql_1\",\n",
    "    charset = \"utf8\",\n",
    ")\n",
    "\n",
    "#用sqlalchemy\n",
    "conn2 = create_engine(\"mysql+pymysql://root:123456@localhost:3306/work_sql_1?charset=utf8\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 创建表格"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'\\ncreate table status(\\n    id int primary key auto_increment,\\n    content varchar(20)\\n);\\n\\ncreate table catagory(\\n    id int primary key auto_increment,\\n    content varchar(100) not null\\n);\\n\\ncreate table customer(\\n    id int primary key auto_increment,\\n    tel varchar(32),\\n    catagory_id int,\\n    constraint c1 foreign key (catagory_id) references catagory(id) on delete cascade\\n);\\n\\ncreate table salesstaff(\\n    id int primary key auto_increment,\\n    name varchar(16),\\n    account varchar(16) not null unique,\\n    password varchar(32) not null\\n);\\n\\ncreate table mission(\\n    id int primary key auto_increment,\\n    customer_id int not null,\\n    salesstaff_id int not null,\\n    createDate date not null,\\n    status_id int not null,\\n    constraint c2 foreign key (customer_id) references customer(id) on delete cascade\\n    constraint c3 foreign key (salesstaff_id ) references salesstaff(id) on delete cascade\\n    constraint c4 foreign key (status_id) references status(id) on delete cascade\\n);\\n'"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\"\"\"\n",
    "create table status(\n",
    "    id int primary key auto_increment,\n",
    "    content varchar(20)\n",
    ");\n",
    "\n",
    "create table catagory(\n",
    "    id int primary key auto_increment,\n",
    "    content varchar(100) not null\n",
    ");\n",
    "\n",
    "create table customer(\n",
    "    id int primary key auto_increment,\n",
    "    tel varchar(32),\n",
    "    catagory_id int,\n",
    "    constraint c1 foreign key (catagory_id) references catagory(id) on delete cascade\n",
    ");\n",
    "\n",
    "create table salesstaff(\n",
    "    id int primary key auto_increment,\n",
    "    name varchar(16),\n",
    "    account varchar(16) not null unique,\n",
    "    password varchar(32) not null\n",
    ");\n",
    "\n",
    "create table mission(\n",
    "    id int primary key auto_increment,\n",
    "    customer_id int not null,\n",
    "    salesstaff_id int not null,\n",
    "    createDate date not null,\n",
    "    status_id int not null,\n",
    "    constraint c2 foreign key (customer_id) references customer(id) on delete cascade\n",
    "    constraint c3 foreign key (salesstaff_id ) references salesstaff(id) on delete cascade\n",
    "    constraint c4 foreign key (status_id) references status(id) on delete cascade\n",
    ");\n",
    "\"\"\"\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "sql_status = \"create table status( id int primary key auto_increment,content varchar(20))\"\n",
    "sql_catagory = \"create table catagory(id int primary key auto_increment,content varchar(100) not null)\"\n",
    "sql_customer = \"create table customer(id int primary key auto_increment,tel varchar(32),catagory_id int,constraint c1 foreign key (catagory_id) references catagory(id) on delete cascade)\"\n",
    "sql_salesstaff = \"create table salesstaff(id int primary key auto_increment,name varchar(16),account varchar(16) not null unique,password varchar(32) not null)\"\n",
    "sql_mission = \"create table mission(id int primary key auto_increment,customer_id int not null,salesstaff_id int not null,createDate date not null,status_id int not null,constraint c2 foreign key (customer_id) references customer(id) on delete cascade,constraint c3 foreign key (salesstaff_id ) references salesstaff(id) on delete cascade,constraint c4 foreign key (status_id) references status(id) on delete cascade)\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# #创建表结构"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "cs = conn1.cursor()\n",
    "cs.execute(sql_status)\n",
    "cs.execute(sql_catagory)\n",
    "cs.execute(sql_customer)\n",
    "cs.execute(sql_salesstaff)\n",
    "cs.execute(sql_mission)\n",
    "conn1.commit()\n",
    "cs.close()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 销售信息"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "df_salesstaff = pd.read_excel(\n",
    "    r\"C:\\Users\\Administrator\\Downloads\\第三周sql\\第三周课程课件\\第三周第十节项目资料\\数据\\销售人员.xlsx\",\n",
    "    sheet_name = \"销售信息\",\n",
    "    )"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>name</th>\n",
       "      <th>account</th>\n",
       "      <th>password</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>张艳</td>\n",
       "      <td>876024831567</td>\n",
       "      <td>b17b1ae95299f365d33f6f28766e34d8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>李勇</td>\n",
       "      <td>156436662455</td>\n",
       "      <td>cf6088de6b5a5201db2c5d8449efdb15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>王平</td>\n",
       "      <td>260460121666</td>\n",
       "      <td>67768d6df4fc05b7d74c8b59e17a4ccf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>李强</td>\n",
       "      <td>775550594765</td>\n",
       "      <td>9b7a25dd2c8b79b8bd9c685d6858b223</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>王芳</td>\n",
       "      <td>965918890050</td>\n",
       "      <td>17e9eba3e021cd4f4412a31dfd1c4f98</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  name       account                          password\n",
       "0   张艳  876024831567  b17b1ae95299f365d33f6f28766e34d8\n",
       "1   李勇  156436662455  cf6088de6b5a5201db2c5d8449efdb15\n",
       "2   王平  260460121666  67768d6df4fc05b7d74c8b59e17a4ccf\n",
       "3   李强  775550594765  9b7a25dd2c8b79b8bd9c685d6858b223\n",
       "4   王芳  965918890050  17e9eba3e021cd4f4412a31dfd1c4f98"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_salesstaff.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "df_salesstaff[\"name\"] = df_salesstaff[\"name\"].apply(\n",
    "lambda name:name.strip()\n",
    ")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 写入数据"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "ename": "IntegrityError",
     "evalue": "(pymysql.err.IntegrityError) (1062, \"Duplicate entry '876024831567' for key 'salesstaff.account'\")\n[SQL: INSERT INTO salesstaff (name, account, password) VALUES (%(name)s, %(account)s, %(password)s)]\n[parameters: ({'name': '张艳', 'account': 876024831567, 'password': 'b17b1ae95299f365d33f6f28766e34d8'}, {'name': '李勇', 'account': 156436662455, 'password': 'cf6088de6b5a5201db2c5d8449efdb15'}, {'name': '王平', 'account': 260460121666, 'password': '67768d6df4fc05b7d74c8b59e17a4ccf'}, {'name': '李强', 'account': 775550594765, 'password': '9b7a25dd2c8b79b8bd9c685d6858b223'}, {'name': '王芳', 'account': 965918890050, 'password': '17e9eba3e021cd4f4412a31dfd1c4f98'}, {'name': '王军', 'account': 732113595562, 'password': '02db78330a5a29e5b4905de20e8f040a'}, {'name': '李伟', 'account': 967231836370, 'password': '8694b0daf919340a947d3b7b40468661'}, {'name': '刘洋', 'account': 478173287220, 'password': 'd1c7c90094e61624b6f121f9917850a7'}  ... displaying 10 of 30 total bound parameter sets ...  {'name': '李敏', 'account': 449756041722, 'password': 'bc245c92c278df9e5e64a0593281a583'}, {'name': '张敏', 'account': 173176330172, 'password': '6510abd9e2c1d9af8c051ee9f0cc0d9e'})]\n(Background on this error at: http://sqlalche.me/e/gkpj)",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mIntegrityError\u001b[0m                            Traceback (most recent call last)",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\sqlalchemy\\engine\\base.py\u001b[0m in \u001b[0;36m_execute_context\u001b[1;34m(self, dialect, constructor, statement, parameters, *args)\u001b[0m\n\u001b[0;32m   1225\u001b[0m                     self.dialect.do_executemany(\n\u001b[1;32m-> 1226\u001b[1;33m                         \u001b[0mcursor\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mstatement\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mparameters\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mcontext\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m   1227\u001b[0m                     )\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\sqlalchemy\\dialects\\mysql\\mysqldb.py\u001b[0m in \u001b[0;36mdo_executemany\u001b[1;34m(self, cursor, statement, parameters, context)\u001b[0m\n\u001b[0;32m    147\u001b[0m     \u001b[1;32mdef\u001b[0m \u001b[0mdo_executemany\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mcursor\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mstatement\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mparameters\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mcontext\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;32mNone\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 148\u001b[1;33m         \u001b[0mrowcount\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mcursor\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mexecutemany\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mstatement\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mparameters\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    149\u001b[0m         \u001b[1;32mif\u001b[0m \u001b[0mcontext\u001b[0m \u001b[1;32mis\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[1;32mNone\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\cursors.py\u001b[0m in \u001b[0;36mexecutemany\u001b[1;34m(self, query, args)\u001b[0m\n\u001b[0;32m    189\u001b[0m                                          \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mmax_stmt_length\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 190\u001b[1;33m                                          self._get_db().encoding)\n\u001b[0m\u001b[0;32m    191\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\cursors.py\u001b[0m in \u001b[0;36m_do_execute_many\u001b[1;34m(self, prefix, values, postfix, args, max_stmt_length, encoding)\u001b[0m\n\u001b[0;32m    226\u001b[0m             \u001b[0msql\u001b[0m \u001b[1;33m+=\u001b[0m \u001b[0mv\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 227\u001b[1;33m         \u001b[0mrows\u001b[0m \u001b[1;33m+=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mexecute\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0msql\u001b[0m \u001b[1;33m+\u001b[0m \u001b[0mpostfix\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    228\u001b[0m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mrowcount\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mrows\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\cursors.py\u001b[0m in \u001b[0;36mexecute\u001b[1;34m(self, query, args)\u001b[0m\n\u001b[0;32m    162\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 163\u001b[1;33m         \u001b[0mresult\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_query\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mquery\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    164\u001b[0m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_executed\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mquery\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\cursors.py\u001b[0m in \u001b[0;36m_query\u001b[1;34m(self, q)\u001b[0m\n\u001b[0;32m    320\u001b[0m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_clear_result\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 321\u001b[1;33m         \u001b[0mconn\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mquery\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mq\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    322\u001b[0m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_do_get_result\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\connections.py\u001b[0m in \u001b[0;36mquery\u001b[1;34m(self, sql, unbuffered)\u001b[0m\n\u001b[0;32m    504\u001b[0m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_execute_command\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mCOMMAND\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mCOM_QUERY\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0msql\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 505\u001b[1;33m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_affected_rows\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_read_query_result\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0munbuffered\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0munbuffered\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    506\u001b[0m         \u001b[1;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_affected_rows\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\connections.py\u001b[0m in \u001b[0;36m_read_query_result\u001b[1;34m(self, unbuffered)\u001b[0m\n\u001b[0;32m    723\u001b[0m             \u001b[0mresult\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mMySQLResult\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 724\u001b[1;33m             \u001b[0mresult\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mread\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    725\u001b[0m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_result\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mresult\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\connections.py\u001b[0m in \u001b[0;36mread\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m   1068\u001b[0m         \u001b[1;32mtry\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m-> 1069\u001b[1;33m             \u001b[0mfirst_packet\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mconnection\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_read_packet\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m   1070\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\connections.py\u001b[0m in \u001b[0;36m_read_packet\u001b[1;34m(self, packet_type)\u001b[0m\n\u001b[0;32m    675\u001b[0m                 \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_result\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0munbuffered_active\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;32mFalse\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 676\u001b[1;33m             \u001b[0mpacket\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mraise_for_error\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    677\u001b[0m         \u001b[1;32mreturn\u001b[0m \u001b[0mpacket\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\protocol.py\u001b[0m in \u001b[0;36mraise_for_error\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m    222\u001b[0m         \u001b[1;32mif\u001b[0m \u001b[0mDEBUG\u001b[0m\u001b[1;33m:\u001b[0m \u001b[0mprint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m\"errno =\"\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0merrno\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 223\u001b[1;33m         \u001b[0merr\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mraise_mysql_exception\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_data\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    224\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\err.py\u001b[0m in \u001b[0;36mraise_mysql_exception\u001b[1;34m(data)\u001b[0m\n\u001b[0;32m    106\u001b[0m         \u001b[0merrorclass\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mInternalError\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0merrno\u001b[0m \u001b[1;33m<\u001b[0m \u001b[1;36m1000\u001b[0m \u001b[1;32melse\u001b[0m \u001b[0mOperationalError\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 107\u001b[1;33m     \u001b[1;32mraise\u001b[0m \u001b[0merrorclass\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0merrno\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0merrval\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;31mIntegrityError\u001b[0m: (1062, \"Duplicate entry '876024831567' for key 'salesstaff.account'\")",
      "\nThe above exception was the direct cause of the following exception:\n",
      "\u001b[1;31mIntegrityError\u001b[0m                            Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-13-321bb4ce0863>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[0;32m      3\u001b[0m     \u001b[0mconn2\u001b[0m\u001b[1;33m,\u001b[0m          \u001b[1;31m#mysql链接\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m      4\u001b[0m     \u001b[0mindex\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;32mFalse\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;31m#写入数据的时候，不使用index\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 5\u001b[1;33m     \u001b[0mif_exists\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;34m\"append\"\u001b[0m \u001b[1;31m#如果表格结构存在，则添加\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m      6\u001b[0m )\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pandas\\core\\generic.py\u001b[0m in \u001b[0;36mto_sql\u001b[1;34m(self, name, con, schema, if_exists, index, index_label, chunksize, dtype, method)\u001b[0m\n\u001b[0;32m   2661\u001b[0m             \u001b[0mchunksize\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mchunksize\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   2662\u001b[0m             \u001b[0mdtype\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mdtype\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m-> 2663\u001b[1;33m             \u001b[0mmethod\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mmethod\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m   2664\u001b[0m         )\n\u001b[0;32m   2665\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pandas\\io\\sql.py\u001b[0m in \u001b[0;36mto_sql\u001b[1;34m(frame, name, con, schema, if_exists, index, index_label, chunksize, dtype, method)\u001b[0m\n\u001b[0;32m    519\u001b[0m         \u001b[0mchunksize\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mchunksize\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    520\u001b[0m         \u001b[0mdtype\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mdtype\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 521\u001b[1;33m         \u001b[0mmethod\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mmethod\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    522\u001b[0m     )\n\u001b[0;32m    523\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pandas\\io\\sql.py\u001b[0m in \u001b[0;36mto_sql\u001b[1;34m(self, frame, name, if_exists, index, index_label, schema, chunksize, dtype, method)\u001b[0m\n\u001b[0;32m   1315\u001b[0m         )\n\u001b[0;32m   1316\u001b[0m         \u001b[0mtable\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mcreate\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m-> 1317\u001b[1;33m         \u001b[0mtable\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0minsert\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mchunksize\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mmethod\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mmethod\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m   1318\u001b[0m         \u001b[1;32mif\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[0mname\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0misdigit\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;32mand\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[0mname\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mislower\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1319\u001b[0m             \u001b[1;31m# check for potentially case sensitivity issues (GH7815)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pandas\\io\\sql.py\u001b[0m in \u001b[0;36minsert\u001b[1;34m(self, chunksize, method)\u001b[0m\n\u001b[0;32m    753\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    754\u001b[0m                 \u001b[0mchunk_iter\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mzip\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m*\u001b[0m\u001b[1;33m[\u001b[0m\u001b[0marr\u001b[0m\u001b[1;33m[\u001b[0m\u001b[0mstart_i\u001b[0m\u001b[1;33m:\u001b[0m\u001b[0mend_i\u001b[0m\u001b[1;33m]\u001b[0m \u001b[1;32mfor\u001b[0m \u001b[0marr\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mdata_list\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 755\u001b[1;33m                 \u001b[0mexec_insert\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mconn\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mkeys\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mchunk_iter\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    756\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    757\u001b[0m     def _query_iterator(\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pandas\\io\\sql.py\u001b[0m in \u001b[0;36m_execute_insert\u001b[1;34m(self, conn, keys, data_iter)\u001b[0m\n\u001b[0;32m    667\u001b[0m         \"\"\"\n\u001b[0;32m    668\u001b[0m         \u001b[0mdata\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;33m[\u001b[0m\u001b[0mdict\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mzip\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mkeys\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mrow\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;32mfor\u001b[0m \u001b[0mrow\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mdata_iter\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 669\u001b[1;33m         \u001b[0mconn\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mexecute\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mtable\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0minsert\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mdata\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    670\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    671\u001b[0m     \u001b[1;32mdef\u001b[0m \u001b[0m_execute_insert_multi\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mconn\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mkeys\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mdata_iter\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\sqlalchemy\\engine\\base.py\u001b[0m in \u001b[0;36mexecute\u001b[1;34m(self, object_, *multiparams, **params)\u001b[0m\n\u001b[0;32m    980\u001b[0m             \u001b[1;32mraise\u001b[0m \u001b[0mexc\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mObjectNotExecutableError\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mobject_\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    981\u001b[0m         \u001b[1;32melse\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 982\u001b[1;33m             \u001b[1;32mreturn\u001b[0m \u001b[0mmeth\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mmultiparams\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mparams\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    983\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    984\u001b[0m     \u001b[1;32mdef\u001b[0m \u001b[0m_execute_function\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mfunc\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mmultiparams\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mparams\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\sqlalchemy\\sql\\elements.py\u001b[0m in \u001b[0;36m_execute_on_connection\u001b[1;34m(self, connection, multiparams, params)\u001b[0m\n\u001b[0;32m    291\u001b[0m     \u001b[1;32mdef\u001b[0m \u001b[0m_execute_on_connection\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mconnection\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mmultiparams\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mparams\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    292\u001b[0m         \u001b[1;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0msupports_execution\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 293\u001b[1;33m             \u001b[1;32mreturn\u001b[0m \u001b[0mconnection\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_execute_clauseelement\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mmultiparams\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mparams\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    294\u001b[0m         \u001b[1;32melse\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    295\u001b[0m             \u001b[1;32mraise\u001b[0m \u001b[0mexc\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mObjectNotExecutableError\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\sqlalchemy\\engine\\base.py\u001b[0m in \u001b[0;36m_execute_clauseelement\u001b[1;34m(self, elem, multiparams, params)\u001b[0m\n\u001b[0;32m   1099\u001b[0m             \u001b[0mdistilled_params\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1100\u001b[0m             \u001b[0mcompiled_sql\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m-> 1101\u001b[1;33m             \u001b[0mdistilled_params\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m   1102\u001b[0m         )\n\u001b[0;32m   1103\u001b[0m         \u001b[1;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_has_events\u001b[0m \u001b[1;32mor\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mengine\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_has_events\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\sqlalchemy\\engine\\base.py\u001b[0m in \u001b[0;36m_execute_context\u001b[1;34m(self, dialect, constructor, statement, parameters, *args)\u001b[0m\n\u001b[0;32m   1248\u001b[0m         \u001b[1;32mexcept\u001b[0m \u001b[0mBaseException\u001b[0m \u001b[1;32mas\u001b[0m \u001b[0me\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1249\u001b[0m             self._handle_dbapi_exception(\n\u001b[1;32m-> 1250\u001b[1;33m                 \u001b[0me\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mstatement\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mparameters\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mcursor\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mcontext\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m   1251\u001b[0m             )\n\u001b[0;32m   1252\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\sqlalchemy\\engine\\base.py\u001b[0m in \u001b[0;36m_handle_dbapi_exception\u001b[1;34m(self, e, statement, parameters, cursor, context)\u001b[0m\n\u001b[0;32m   1474\u001b[0m                 \u001b[0mutil\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mraise_from_cause\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mnewraise\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mexc_info\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1475\u001b[0m             \u001b[1;32melif\u001b[0m \u001b[0mshould_wrap\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m-> 1476\u001b[1;33m                 \u001b[0mutil\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mraise_from_cause\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0msqlalchemy_exception\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mexc_info\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m   1477\u001b[0m             \u001b[1;32melse\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1478\u001b[0m                 \u001b[0mutil\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mreraise\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m*\u001b[0m\u001b[0mexc_info\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\sqlalchemy\\util\\compat.py\u001b[0m in \u001b[0;36mraise_from_cause\u001b[1;34m(exception, exc_info)\u001b[0m\n\u001b[0;32m    396\u001b[0m     \u001b[0mexc_type\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mexc_value\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mexc_tb\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mexc_info\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    397\u001b[0m     \u001b[0mcause\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mexc_value\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0mexc_value\u001b[0m \u001b[1;32mis\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[0mexception\u001b[0m \u001b[1;32melse\u001b[0m \u001b[1;32mNone\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 398\u001b[1;33m     \u001b[0mreraise\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mtype\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mexception\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mexception\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mtb\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mexc_tb\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mcause\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mcause\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    399\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    400\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\sqlalchemy\\util\\compat.py\u001b[0m in \u001b[0;36mreraise\u001b[1;34m(tp, value, tb, cause)\u001b[0m\n\u001b[0;32m    150\u001b[0m             \u001b[0mvalue\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m__cause__\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mcause\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    151\u001b[0m         \u001b[1;32mif\u001b[0m \u001b[0mvalue\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m__traceback__\u001b[0m \u001b[1;32mis\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[0mtb\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 152\u001b[1;33m             \u001b[1;32mraise\u001b[0m \u001b[0mvalue\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mwith_traceback\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mtb\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    153\u001b[0m         \u001b[1;32mraise\u001b[0m \u001b[0mvalue\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    154\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\sqlalchemy\\engine\\base.py\u001b[0m in \u001b[0;36m_execute_context\u001b[1;34m(self, dialect, constructor, statement, parameters, *args)\u001b[0m\n\u001b[0;32m   1224\u001b[0m                 \u001b[1;32mif\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[0mevt_handled\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1225\u001b[0m                     self.dialect.do_executemany(\n\u001b[1;32m-> 1226\u001b[1;33m                         \u001b[0mcursor\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mstatement\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mparameters\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mcontext\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m   1227\u001b[0m                     )\n\u001b[0;32m   1228\u001b[0m             \u001b[1;32melif\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[0mparameters\u001b[0m \u001b[1;32mand\u001b[0m \u001b[0mcontext\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mno_parameters\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\sqlalchemy\\dialects\\mysql\\mysqldb.py\u001b[0m in \u001b[0;36mdo_executemany\u001b[1;34m(self, cursor, statement, parameters, context)\u001b[0m\n\u001b[0;32m    146\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    147\u001b[0m     \u001b[1;32mdef\u001b[0m \u001b[0mdo_executemany\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mcursor\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mstatement\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mparameters\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mcontext\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;32mNone\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 148\u001b[1;33m         \u001b[0mrowcount\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mcursor\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mexecutemany\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mstatement\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mparameters\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    149\u001b[0m         \u001b[1;32mif\u001b[0m \u001b[0mcontext\u001b[0m \u001b[1;32mis\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[1;32mNone\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    150\u001b[0m             \u001b[0mcontext\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_rowcount\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mrowcount\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\cursors.py\u001b[0m in \u001b[0;36mexecutemany\u001b[1;34m(self, query, args)\u001b[0m\n\u001b[0;32m    188\u001b[0m             return self._do_execute_many(q_prefix, q_values, q_postfix, args,\n\u001b[0;32m    189\u001b[0m                                          \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mmax_stmt_length\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 190\u001b[1;33m                                          self._get_db().encoding)\n\u001b[0m\u001b[0;32m    191\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    192\u001b[0m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mrowcount\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0msum\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mexecute\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mquery\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0marg\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;32mfor\u001b[0m \u001b[0marg\u001b[0m \u001b[1;32min\u001b[0m \u001b[0margs\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\cursors.py\u001b[0m in \u001b[0;36m_do_execute_many\u001b[1;34m(self, prefix, values, postfix, args, max_stmt_length, encoding)\u001b[0m\n\u001b[0;32m    225\u001b[0m                 \u001b[0msql\u001b[0m \u001b[1;33m+=\u001b[0m \u001b[1;34mb','\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    226\u001b[0m             \u001b[0msql\u001b[0m \u001b[1;33m+=\u001b[0m \u001b[0mv\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 227\u001b[1;33m         \u001b[0mrows\u001b[0m \u001b[1;33m+=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mexecute\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0msql\u001b[0m \u001b[1;33m+\u001b[0m \u001b[0mpostfix\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    228\u001b[0m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mrowcount\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mrows\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    229\u001b[0m         \u001b[1;32mreturn\u001b[0m \u001b[0mrows\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\cursors.py\u001b[0m in \u001b[0;36mexecute\u001b[1;34m(self, query, args)\u001b[0m\n\u001b[0;32m    161\u001b[0m         \u001b[0mquery\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mmogrify\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mquery\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0margs\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    162\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 163\u001b[1;33m         \u001b[0mresult\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_query\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mquery\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    164\u001b[0m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_executed\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mquery\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    165\u001b[0m         \u001b[1;32mreturn\u001b[0m \u001b[0mresult\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\cursors.py\u001b[0m in \u001b[0;36m_query\u001b[1;34m(self, q)\u001b[0m\n\u001b[0;32m    319\u001b[0m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_last_executed\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mq\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    320\u001b[0m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_clear_result\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 321\u001b[1;33m         \u001b[0mconn\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mquery\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mq\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    322\u001b[0m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_do_get_result\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    323\u001b[0m         \u001b[1;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mrowcount\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\connections.py\u001b[0m in \u001b[0;36mquery\u001b[1;34m(self, sql, unbuffered)\u001b[0m\n\u001b[0;32m    503\u001b[0m                 \u001b[0msql\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0msql\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mencode\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mencoding\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;34m'surrogateescape'\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    504\u001b[0m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_execute_command\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mCOMMAND\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mCOM_QUERY\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0msql\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 505\u001b[1;33m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_affected_rows\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_read_query_result\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0munbuffered\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0munbuffered\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    506\u001b[0m         \u001b[1;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_affected_rows\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    507\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\connections.py\u001b[0m in \u001b[0;36m_read_query_result\u001b[1;34m(self, unbuffered)\u001b[0m\n\u001b[0;32m    722\u001b[0m         \u001b[1;32melse\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    723\u001b[0m             \u001b[0mresult\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mMySQLResult\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 724\u001b[1;33m             \u001b[0mresult\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mread\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    725\u001b[0m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_result\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mresult\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    726\u001b[0m         \u001b[1;32mif\u001b[0m \u001b[0mresult\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mserver_status\u001b[0m \u001b[1;32mis\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[1;32mNone\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\connections.py\u001b[0m in \u001b[0;36mread\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m   1067\u001b[0m     \u001b[1;32mdef\u001b[0m \u001b[0mread\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1068\u001b[0m         \u001b[1;32mtry\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m-> 1069\u001b[1;33m             \u001b[0mfirst_packet\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mconnection\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_read_packet\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m   1070\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1071\u001b[0m             \u001b[1;32mif\u001b[0m \u001b[0mfirst_packet\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mis_ok_packet\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\connections.py\u001b[0m in \u001b[0;36m_read_packet\u001b[1;34m(self, packet_type)\u001b[0m\n\u001b[0;32m    674\u001b[0m             \u001b[1;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_result\u001b[0m \u001b[1;32mis\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[1;32mNone\u001b[0m \u001b[1;32mand\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_result\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0munbuffered_active\u001b[0m \u001b[1;32mis\u001b[0m \u001b[1;32mTrue\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    675\u001b[0m                 \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_result\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0munbuffered_active\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;32mFalse\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 676\u001b[1;33m             \u001b[0mpacket\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mraise_for_error\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    677\u001b[0m         \u001b[1;32mreturn\u001b[0m \u001b[0mpacket\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    678\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\protocol.py\u001b[0m in \u001b[0;36mraise_for_error\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m    221\u001b[0m         \u001b[0merrno\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mread_uint16\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    222\u001b[0m         \u001b[1;32mif\u001b[0m \u001b[0mDEBUG\u001b[0m\u001b[1;33m:\u001b[0m \u001b[0mprint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m\"errno =\"\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0merrno\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 223\u001b[1;33m         \u001b[0merr\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mraise_mysql_exception\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_data\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    224\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    225\u001b[0m     \u001b[1;32mdef\u001b[0m \u001b[0mdump\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Anaconda\\anaconda\\lib\\site-packages\\pymysql\\err.py\u001b[0m in \u001b[0;36mraise_mysql_exception\u001b[1;34m(data)\u001b[0m\n\u001b[0;32m    105\u001b[0m     \u001b[1;32mif\u001b[0m \u001b[0merrorclass\u001b[0m \u001b[1;32mis\u001b[0m \u001b[1;32mNone\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    106\u001b[0m         \u001b[0merrorclass\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mInternalError\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0merrno\u001b[0m \u001b[1;33m<\u001b[0m \u001b[1;36m1000\u001b[0m \u001b[1;32melse\u001b[0m \u001b[0mOperationalError\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 107\u001b[1;33m     \u001b[1;32mraise\u001b[0m \u001b[0merrorclass\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0merrno\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0merrval\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;31mIntegrityError\u001b[0m: (pymysql.err.IntegrityError) (1062, \"Duplicate entry '876024831567' for key 'salesstaff.account'\")\n[SQL: INSERT INTO salesstaff (name, account, password) VALUES (%(name)s, %(account)s, %(password)s)]\n[parameters: ({'name': '张艳', 'account': 876024831567, 'password': 'b17b1ae95299f365d33f6f28766e34d8'}, {'name': '李勇', 'account': 156436662455, 'password': 'cf6088de6b5a5201db2c5d8449efdb15'}, {'name': '王平', 'account': 260460121666, 'password': '67768d6df4fc05b7d74c8b59e17a4ccf'}, {'name': '李强', 'account': 775550594765, 'password': '9b7a25dd2c8b79b8bd9c685d6858b223'}, {'name': '王芳', 'account': 965918890050, 'password': '17e9eba3e021cd4f4412a31dfd1c4f98'}, {'name': '王军', 'account': 732113595562, 'password': '02db78330a5a29e5b4905de20e8f040a'}, {'name': '李伟', 'account': 967231836370, 'password': '8694b0daf919340a947d3b7b40468661'}, {'name': '刘洋', 'account': 478173287220, 'password': 'd1c7c90094e61624b6f121f9917850a7'}  ... displaying 10 of 30 total bound parameter sets ...  {'name': '李敏', 'account': 449756041722, 'password': 'bc245c92c278df9e5e64a0593281a583'}, {'name': '张敏', 'account': 173176330172, 'password': '6510abd9e2c1d9af8c051ee9f0cc0d9e'})]\n(Background on this error at: http://sqlalche.me/e/gkpj)"
     ]
    }
   ],
   "source": [
    "df_salesstaff.to_sql(\n",
    "    \"salesstaff\",   #表名字\n",
    "    conn2,          #mysql链接\n",
    "    index = False, #写入数据的时候，不使用index\n",
    "    if_exists = \"append\" #如果表格结构存在，则添加\n",
    ")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 种类"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['人事-行政-后勤',\n",
       " '保健按摩',\n",
       " '保险',\n",
       " '其他职位',\n",
       " '农-林-牧-渔业',\n",
       " '制药-生物工程',\n",
       " '化工',\n",
       " '医院-医疗-护理',\n",
       " '司机-交通服务',\n",
       " '商超零工',\n",
       " '实习生-培训生-储备干部',\n",
       " '客服',\n",
       " '家政保洁-安保',\n",
       " '工厂零工',\n",
       " '市场-媒介-公关',\n",
       " '广告-会展-咨询',\n",
       " '建筑',\n",
       " '影视-娱乐-休闲',\n",
       " '志愿者-社会工作者',\n",
       " '快递-餐饮配送',\n",
       " '房产中介',\n",
       " '政府-非营利机构',\n",
       " '教育培训',\n",
       " '旅游',\n",
       " '日结零工',\n",
       " '普工-技工',\n",
       " '暑期零工',\n",
       " '服装-纺织-食品',\n",
       " '机械-仪器仪表',\n",
       " '汽车制造-服务',\n",
       " '法律',\n",
       " '淘宝职位',\n",
       " '物业管理',\n",
       " '物流-仓储',\n",
       " '环保-能源',\n",
       " '生产管理-研发',\n",
       " '电子-电气',\n",
       " '短期零工',\n",
       " '编辑-出版-印刷',\n",
       " '美容-美发',\n",
       " '美术-设计-创意',\n",
       " '翻译',\n",
       " '职业培训',\n",
       " '计算机-互联网-通信',\n",
       " '财务-审计-统计',\n",
       " '质控-安防',\n",
       " '贸易-采购',\n",
       " '超市-百货-零售',\n",
       " '运动健身',\n",
       " '酒店',\n",
       " '金融-银行-证券-投资',\n",
       " '销售11',\n",
       " '餐饮',\n",
       " '餐饮零工',\n",
       " '高级管理']"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "categorys = pd.ExcelFile(r\"C:\\Users\\Administrator\\Downloads\\第三周sql\\第三周课程课件\\第三周第十节项目资料\\数据\\顾客信息.xlsx\",\n",
    "                         ).sheet_names\n",
    "categorys"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 构建catagory"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['(\"人事-行政-后勤\")',\n",
       " '(\"保健按摩\")',\n",
       " '(\"保险\")',\n",
       " '(\"其他职位\")',\n",
       " '(\"农-林-牧-渔业\")',\n",
       " '(\"制药-生物工程\")',\n",
       " '(\"化工\")',\n",
       " '(\"医院-医疗-护理\")',\n",
       " '(\"司机-交通服务\")',\n",
       " '(\"商超零工\")',\n",
       " '(\"实习生-培训生-储备干部\")',\n",
       " '(\"客服\")',\n",
       " '(\"家政保洁-安保\")',\n",
       " '(\"工厂零工\")',\n",
       " '(\"市场-媒介-公关\")',\n",
       " '(\"广告-会展-咨询\")',\n",
       " '(\"建筑\")',\n",
       " '(\"影视-娱乐-休闲\")',\n",
       " '(\"志愿者-社会工作者\")',\n",
       " '(\"快递-餐饮配送\")',\n",
       " '(\"房产中介\")',\n",
       " '(\"政府-非营利机构\")',\n",
       " '(\"教育培训\")',\n",
       " '(\"旅游\")',\n",
       " '(\"日结零工\")',\n",
       " '(\"普工-技工\")',\n",
       " '(\"暑期零工\")',\n",
       " '(\"服装-纺织-食品\")',\n",
       " '(\"机械-仪器仪表\")',\n",
       " '(\"汽车制造-服务\")',\n",
       " '(\"法律\")',\n",
       " '(\"淘宝职位\")',\n",
       " '(\"物业管理\")',\n",
       " '(\"物流-仓储\")',\n",
       " '(\"环保-能源\")',\n",
       " '(\"生产管理-研发\")',\n",
       " '(\"电子-电气\")',\n",
       " '(\"短期零工\")',\n",
       " '(\"编辑-出版-印刷\")',\n",
       " '(\"美容-美发\")',\n",
       " '(\"美术-设计-创意\")',\n",
       " '(\"翻译\")',\n",
       " '(\"职业培训\")',\n",
       " '(\"计算机-互联网-通信\")',\n",
       " '(\"财务-审计-统计\")',\n",
       " '(\"质控-安防\")',\n",
       " '(\"贸易-采购\")',\n",
       " '(\"超市-百货-零售\")',\n",
       " '(\"运动健身\")',\n",
       " '(\"酒店\")',\n",
       " '(\"金融-银行-证券-投资\")',\n",
       " '(\"销售11\")',\n",
       " '(\"餐饮\")',\n",
       " '(\"餐饮零工\")',\n",
       " '(\"高级管理\")']"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "values = []\n",
    "for category in categorys:\n",
    "    values.append('(\"%s\")'%category)\n",
    "values"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'(\"人事-行政-后勤\")\\'\\'(\"保健按摩\")\\'\\'(\"保险\")\\'\\'(\"其他职位\")\\'\\'(\"农-林-牧-渔业\")\\'\\'(\"制药-生物工程\")\\'\\'(\"化工\")\\'\\'(\"医院-医疗-护理\")\\'\\'(\"司机-交通服务\")\\'\\'(\"商超零工\")\\'\\'(\"实习生-培训生-储备干部\")\\'\\'(\"客服\")\\'\\'(\"家政保洁-安保\")\\'\\'(\"工厂零工\")\\'\\'(\"市场-媒介-公关\")\\'\\'(\"广告-会展-咨询\")\\'\\'(\"建筑\")\\'\\'(\"影视-娱乐-休闲\")\\'\\'(\"志愿者-社会工作者\")\\'\\'(\"快递-餐饮配送\")\\'\\'(\"房产中介\")\\'\\'(\"政府-非营利机构\")\\'\\'(\"教育培训\")\\'\\'(\"旅游\")\\'\\'(\"日结零工\")\\'\\'(\"普工-技工\")\\'\\'(\"暑期零工\")\\'\\'(\"服装-纺织-食品\")\\'\\'(\"机械-仪器仪表\")\\'\\'(\"汽车制造-服务\")\\'\\'(\"法律\")\\'\\'(\"淘宝职位\")\\'\\'(\"物业管理\")\\'\\'(\"物流-仓储\")\\'\\'(\"环保-能源\")\\'\\'(\"生产管理-研发\")\\'\\'(\"电子-电气\")\\'\\'(\"短期零工\")\\'\\'(\"编辑-出版-印刷\")\\'\\'(\"美容-美发\")\\'\\'(\"美术-设计-创意\")\\'\\'(\"翻译\")\\'\\'(\"职业培训\")\\'\\'(\"计算机-互联网-通信\")\\'\\'(\"财务-审计-统计\")\\'\\'(\"质控-安防\")\\'\\'(\"贸易-采购\")\\'\\'(\"超市-百货-零售\")\\'\\'(\"运动健身\")\\'\\'(\"酒店\")\\'\\'(\"金融-银行-证券-投资\")\\'\\'(\"销售11\")\\'\\'(\"餐饮\")\\'\\'(\"餐饮零工\")\\'\\'(\"高级管理\")'"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\"''\".join(values)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'(\"人事-行政-后勤\"),(\"保健按摩\"),(\"保险\"),(\"其他职位\"),(\"农-林-牧-渔业\"),(\"制药-生物工程\"),(\"化工\"),(\"医院-医疗-护理\"),(\"司机-交通服务\"),(\"商超零工\"),(\"实习生-培训生-储备干部\"),(\"客服\"),(\"家政保洁-安保\"),(\"工厂零工\"),(\"市场-媒介-公关\"),(\"广告-会展-咨询\"),(\"建筑\"),(\"影视-娱乐-休闲\"),(\"志愿者-社会工作者\"),(\"快递-餐饮配送\"),(\"房产中介\"),(\"政府-非营利机构\"),(\"教育培训\"),(\"旅游\"),(\"日结零工\"),(\"普工-技工\"),(\"暑期零工\"),(\"服装-纺织-食品\"),(\"机械-仪器仪表\"),(\"汽车制造-服务\"),(\"法律\"),(\"淘宝职位\"),(\"物业管理\"),(\"物流-仓储\"),(\"环保-能源\"),(\"生产管理-研发\"),(\"电子-电气\"),(\"短期零工\"),(\"编辑-出版-印刷\"),(\"美容-美发\"),(\"美术-设计-创意\"),(\"翻译\"),(\"职业培训\"),(\"计算机-互联网-通信\"),(\"财务-审计-统计\"),(\"质控-安防\"),(\"贸易-采购\"),(\"超市-百货-零售\"),(\"运动健身\"),(\"酒店\"),(\"金融-银行-证券-投资\"),(\"销售11\"),(\"餐饮\"),(\"餐饮零工\"),(\"高级管理\")'"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\",\".join(values)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'insert into catagory(content) values (\"人事-行政-后勤\"),(\"保健按摩\"),(\"保险\"),(\"其他职位\"),(\"农-林-牧-渔业\"),(\"制药-生物工程\"),(\"化工\"),(\"医院-医疗-护理\"),(\"司机-交通服务\"),(\"商超零工\"),(\"实习生-培训生-储备干部\"),(\"客服\"),(\"家政保洁-安保\"),(\"工厂零工\"),(\"市场-媒介-公关\"),(\"广告-会展-咨询\"),(\"建筑\"),(\"影视-娱乐-休闲\"),(\"志愿者-社会工作者\"),(\"快递-餐饮配送\"),(\"房产中介\"),(\"政府-非营利机构\"),(\"教育培训\"),(\"旅游\"),(\"日结零工\"),(\"普工-技工\"),(\"暑期零工\"),(\"服装-纺织-食品\"),(\"机械-仪器仪表\"),(\"汽车制造-服务\"),(\"法律\"),(\"淘宝职位\"),(\"物业管理\"),(\"物流-仓储\"),(\"环保-能源\"),(\"生产管理-研发\"),(\"电子-电气\"),(\"短期零工\"),(\"编辑-出版-印刷\"),(\"美容-美发\"),(\"美术-设计-创意\"),(\"翻译\"),(\"职业培训\"),(\"计算机-互联网-通信\"),(\"财务-审计-统计\"),(\"质控-安防\"),(\"贸易-采购\"),(\"超市-百货-零售\"),(\"运动健身\"),(\"酒店\"),(\"金融-银行-证券-投资\"),(\"销售11\"),(\"餐饮\"),(\"餐饮零工\"),(\"高级管理\")'"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sql = \"insert into catagory(content) values %s\"%\",\".join(values)\n",
    "sql"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [],
   "source": [
    "cs = conn1.cursor()\n",
    "cs.execute(sql)\n",
    "conn1.commit()\n",
    "cs.close()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 顾客信息"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'人事-行政-后勤':                                   手机号\n",
      "0    94a20c908ea398cefba903e2d6598ea2\n",
      "1    5abd29bae58e80cc2513b9aa0f3dd598\n",
      "2    90875eb5b8fc1c84cf9a395f642ac092\n",
      "3    05f8673bd351bdb9bf3f503013784da8\n",
      "4    f4e507f349ac8455d8426db77c377636\n",
      "..                                ...\n",
      "716  b6a457de3912bf162025de45990f4771\n",
      "717  fb77f39bfc791cbeba8daa2ae2dbc435\n",
      "718  ccbfe2f9e9c373eb7f1747e2691ce6e1\n",
      "719  5f8e8dcadaf71f69dfe5133baa282ecc\n",
      "720  7cf94b49569fc0df9982b9b03caf04c9\n",
      "\n",
      "[721 rows x 1 columns], '保健按摩':                                   手机号\n",
      "0    4dda64e85fc489ec29d654b3d92ae8da\n",
      "1    0c68b19cf579e7d0038c3e9f6bd94ff9\n",
      "2    5e18abde83f809cbc332c50fc5e7ef13\n",
      "3    da19276d97df45e61f5a2b6d09c57389\n",
      "4    9e4729ca9593ed81cb6ca953956da78f\n",
      "..                                ...\n",
      "487  cb383e860f99312e7ff7030b793c57c9\n",
      "488  2e9ada0ccba0190bca2e07e3ce20e5e6\n",
      "489  e207a916ee6d72f3edb51686dfa7138b\n",
      "490  1f0a31a5ec3e12ea95f3d78c284fbccb\n",
      "491  faa862ad4db4e6c6f70aabf08f2919bc\n",
      "\n",
      "[492 rows x 1 columns], '保险':                                   手机号\n",
      "0    6a372cbf4c959259dca37aaff6674486\n",
      "1    be496326a08f647407e3370c19d6d6b1\n",
      "2    5126b94d3960ad90c4753abd3b64bcbf\n",
      "3    c534434a9839b9808c1773b1a971199f\n",
      "4    d48b9334f394a790c36f287386ad9bd8\n",
      "..                                ...\n",
      "900  906c5d44c18edb2af5f5ba0b0bbdbd3e\n",
      "901  7b10ed9a5c18c680f8fffbe4d843d022\n",
      "902  8f5ced6304d25ae0a9623343b72d86b3\n",
      "903  6cdb3717a57567a20aa81f6947b76bf3\n",
      "904  ad133df442c80a4ebca0f9a4bddf7069\n",
      "\n",
      "[905 rows x 1 columns], '其他职位':                                  手机号\n",
      "0   5f4a6a40e87ae9ffa5b9f9dfc8ff5d83\n",
      "1   39e03c006867a0f67d6f01849d3236bb\n",
      "2   cb4af484f0ee0e6c1c1a78eab2d077b9\n",
      "3   e1a5abcfbcaf943e2688240d8d1c765e\n",
      "4   11373bfe0d78e9cdf7724ccb2405ebfd\n",
      "..                               ...\n",
      "85  567c3787833c75a5d04d818817f89181\n",
      "86  6f3e0a42f355fd2c2d795dc2da24bda8\n",
      "87  91cad7137358f625bf38bd7202be7ab6\n",
      "88  4c4a5a5be55a813a795b2a6c23e5a258\n",
      "89  7de4e47a9900ffbfdcba088603435405\n",
      "\n",
      "[90 rows x 1 columns], '农-林-牧-渔业':                                   手机号\n",
      "0    06fc2ebf7a6f61e15106ab5ac2a80f5e\n",
      "1    fde205cba73fa69b3aefa5a362926012\n",
      "2    edb304d7732685a75ae3fcd5d76f32e2\n",
      "3    0d4b5f9abfd6228168f373f057ee4ab7\n",
      "4    b18391f3b727cb5749df3cf7bd8936d1\n",
      "..                                ...\n",
      "524  fba8daa11e5caf46060249100e8c445f\n",
      "525  ba230d55b014ab0039853e9c5176a370\n",
      "526  776ccaff7c1b076ce44463ac1b5ffde0\n",
      "527  cd33adb68add5e5006ca7af104e4db61\n",
      "528  1232a790094cb3bea2c692a6e663ec9b\n",
      "\n",
      "[529 rows x 1 columns], '制药-生物工程':                                  手机号\n",
      "0   6d9e89f1af72d16ee35abf46ddde391f\n",
      "1   5b08e1c6bbd1e40120365e5ccd1fe9f1\n",
      "2   69fd065e94173935645c052e4a04e5e2\n",
      "3   8b8607aaf9d4886e3d39f77e296a35a9\n",
      "4   5807470c5f3fa702ac3d6f2baa895fd9\n",
      "..                               ...\n",
      "92  db8cf07b000e94d123f5e55c093c07c3\n",
      "93  68a26774e50f90433543f1aee588ed8f\n",
      "94  8dc4adcf671b62ec70a26d357a2199f9\n",
      "95  3dc7a564710146cd1d2bdcf24c11e8f3\n",
      "96  d5cebdb1f6da2f20c12049e03d719d2b\n",
      "\n",
      "[97 rows x 1 columns], '化工':                                   手机号\n",
      "0    3a844a5c25dedb64a0e45ed0dab1fe65\n",
      "1    4fce0f7fceebd68900a78784e37170c6\n",
      "2    f644cbe24fd46573e938db0c568b9287\n",
      "3    0cf964f1f2a05ec683a44f7a7920ee00\n",
      "4    49ae65082ae92197507330e6a74b00a2\n",
      "..                                ...\n",
      "831  d56a0648a06a41908cf1b4c3c5b7d3c4\n",
      "832  6a4a2bb8212963335276efdb7297ad8b\n",
      "833  c60d723cc428aaf974d1028df7333348\n",
      "834  bc7dd0ac2da525224f7e4cbfab68c223\n",
      "835  218e029a14bef5be026cad255516b88a\n",
      "\n",
      "[836 rows x 1 columns], '医院-医疗-护理':                                   手机号\n",
      "0    3b923e27d8ddd6c0bba640d3580a5c43\n",
      "1    acae75a8c9d7bf3dc0c2be2fd9f9dcf0\n",
      "2    a27290c3e7ec15a24d0ac30d142df2cd\n",
      "3    c7baa7713a43056386d6a32b28d12418\n",
      "4    c8739c50bfe7475ed55b5c83bcb33ad1\n",
      "..                                ...\n",
      "503  dfd48e7378045c270f5c5a02cd108a99\n",
      "504  e81d2754e277246f193a44ea01f7a683\n",
      "505  5ba0af31f85130c69d6cbdd66ef97c0d\n",
      "506  2eab4af504ff78ad977ed77067306fde\n",
      "507  de215c0b90af42d2fca7f36b0dad4241\n",
      "\n",
      "[508 rows x 1 columns], '司机-交通服务':                                   手机号\n",
      "0    4461a11db21a1d54f1866210a28d8157\n",
      "1    2cf6b11ec2d2399bdcd53d2903bb280c\n",
      "2    fde00897ce7893692fabecc338d4bb66\n",
      "3    05150614cfd282eafd3a249acb8dd2c2\n",
      "4    77cec4b351295bb7365601284316529e\n",
      "..                                ...\n",
      "459  8a735567aa80a42e089b8693d43195fc\n",
      "460  f78810d7bff2b11ba75c6e07606c1deb\n",
      "461  a7602e3dbecfced2b5ff56de7b3f27f3\n",
      "462  2322c004f633df0f01e563129d7aa879\n",
      "463  61a8cd845d4d2ee2537a98565f4ca5b8\n",
      "\n",
      "[464 rows x 1 columns], '商超零工':                                   手机号\n",
      "0    7b164586550acca5a446a00be8d5337d\n",
      "1    275ed13af1e8b5d486ac5de5f36eb8b6\n",
      "2    b51d2c4db3ec7a428c831f953454ea07\n",
      "3    88eda03eecf5ac33767c846bb7bdc359\n",
      "4    dad805ecfa270de133d35e77b2b76f3d\n",
      "..                                ...\n",
      "482  127aa5eb99698c4c510f035d47241b4a\n",
      "483  9db2961d6da46a8450cbd5d504617423\n",
      "484  8c0bcf332863c18c2da61e4eb7925ad0\n",
      "485  662eff53bdaf6ba710437d6bc7940b35\n",
      "486  5dc0841914535d72bd558cab501acba4\n",
      "\n",
      "[487 rows x 1 columns], '实习生-培训生-储备干部':                                   手机号\n",
      "0    c5331d188bb13269a2590569564f4385\n",
      "1    967e7e009e0d14dea75048c38b249366\n",
      "2    2c20f4015681c12c4ce936e21e292dc5\n",
      "3    e519a1a93e749a6e8e9c8bcb23d3d544\n",
      "4    34afac25756500b42f293f14387135e2\n",
      "..                                ...\n",
      "193  1e69b41ee0b4e702bdf39eaba08743e2\n",
      "194  20f822fbf787c3e089cfaa9894efbe88\n",
      "195  b2db4317b10ff1550c6e4a31e46ff9d4\n",
      "196  d2eacc032af0db61298f752ca82be4a4\n",
      "197  1e84f3f1d5793c9801e2516b505d219a\n",
      "\n",
      "[198 rows x 1 columns], '客服':                                   手机号\n",
      "0    055e2ec08aa799a7a8a02cadf401c556\n",
      "1    86d84a840f593cca23e4c6e60fcf4f3e\n",
      "2    93f4ad43138d1e9f6ad8cd1e95500dcb\n",
      "3    992c438730ece0f093080caf1c71462f\n",
      "4    e826a292084a61c66ba1d346ce042f66\n",
      "..                                ...\n",
      "695  c579c3e5524b647144c37aae22f88c7c\n",
      "696  089848272c3314a3a33c0afb5c7fbad1\n",
      "697  d38561aeae1a7f0fad35d56a8ddf6008\n",
      "698  daab7c3965b09c14605b917303682e1a\n",
      "699  90ff9d5e58e0f6e2b26d12d22d8229a7\n",
      "\n",
      "[700 rows x 1 columns], '家政保洁-安保':                                  手机号\n",
      "0   b7130f79ee50c568ccd381eea994c557\n",
      "1   9dde31e8a66e0671513988924c3f1fef\n",
      "2   eca65437d2981f2c42629c4a73dd3a71\n",
      "3   ab1aecda0a0a47c0f7317334ff3ac489\n",
      "4   5f9d5074c0114f02319bb0b3492fa6b4\n",
      "..                               ...\n",
      "92  79315c232d66293b1d077e8c0ebaa3a9\n",
      "93  35f5696fd6daec38d24cb871949ad81b\n",
      "94  4586a0f71a159fd33328551f814464c0\n",
      "95  b5352a87775e49d61e426824f66b5c2e\n",
      "96  9ad32c8f85a16d9121af822fea6942b8\n",
      "\n",
      "[97 rows x 1 columns], '工厂零工':                                   手机号\n",
      "0    df985e3b7adf3a1d0a3d4d7046ff521e\n",
      "1    a74942c9bcb66da5e718a5412a23a27c\n",
      "2    048af297c89ec3440816c7270866ff1f\n",
      "3    b1a3102a0f4fc2e4619f3c291f3ca19f\n",
      "4    cc59c22b95a573099d23ab3b9b71c4f8\n",
      "..                                ...\n",
      "778  14dec36b94de0445cb238c882661fc83\n",
      "779  7d736acf8145154e26223be04f32cf9a\n",
      "780  6a959a48b112676754ba444610037364\n",
      "781  4d6b21afeaf027185299a76619b65db0\n",
      "782  a005ab93a1eb833002c37e2827faa771\n",
      "\n",
      "[783 rows x 1 columns], '市场-媒介-公关':                                   手机号\n",
      "0    5391c355d8dc084c26d54e186d525cd7\n",
      "1    d7ffd1032dfba069911c794d9be72676\n",
      "2    41ab777f7525f415d97938267d00ad75\n",
      "3    ecfb1cebfb230d734dc2b4a45610d195\n",
      "4    d065d85fd72b4312e7536652c13a4265\n",
      "..                                ...\n",
      "472  80c9bcbec8a49af0bdb83090ca8c6e46\n",
      "473  d565043d3edf94da9d04efd12dc3b3ba\n",
      "474  f47f3aecc87703bc15dc013607902c38\n",
      "475  cb3fca8a6ebddaa290e91fb013028929\n",
      "476  c3e47fecfc65827bbc4757beb6375aea\n",
      "\n",
      "[477 rows x 1 columns], '广告-会展-咨询':                                   手机号\n",
      "0    0103eff32db8682075ae345850f5417f\n",
      "1    15f6bda69a8402c35c0a188a2f88b31e\n",
      "2    24ff1adde143c1f65432f05c0bdf6872\n",
      "3    ccad0c96b243d7c5aeffa69121de45ea\n",
      "4    3ea171e9098997a5ef7f720c8268562f\n",
      "..                                ...\n",
      "969  6add1b19a5b4f54f96f9dd818c2c1418\n",
      "970  9bc034688e7de971ef14cf6b90c4d090\n",
      "971  d5a3bfde7a1499910b040a5c97c3480f\n",
      "972  3751b4b43d3b369442ba046acf3eba23\n",
      "973  b7fadf8142efe0692c3314631e01dcb0\n",
      "\n",
      "[974 rows x 1 columns], '建筑':                                   手机号\n",
      "0    c993bf7bf181bc28dbca1fa6346ed045\n",
      "1    bb908f72e26f0604c8496aea793afa9c\n",
      "2    064f93a96b6f2e3a587be6fe27e9c1c5\n",
      "3    00a5cba4c3e9dcb7a3c818fc960f2b94\n",
      "4    a66c81a565b4f3b1bf034b41ef0e822e\n",
      "..                                ...\n",
      "275  540661067bb6688a1e315f1b76dec7fc\n",
      "276  3544aa8d3291133772b094ee847056f1\n",
      "277  38ea8c36cbe51f423003c8df62a1da20\n",
      "278  d07fdf944e7f4ebdc4c51623f841bc6b\n",
      "279  067bbd137b85bc47ebeaf168bed15db2\n",
      "\n",
      "[280 rows x 1 columns], '影视-娱乐-休闲':                                   手机号\n",
      "0    25d3ab7d9263228383854842ac6d739f\n",
      "1    3975d9c850108ca5e7e087eee03bb8d5\n",
      "2    4f47a90d92119bd41f374ffe3fa9c3c2\n",
      "3    eff465ab031699489939cbde7779cb60\n",
      "4    cdf7b7e3df790fd95c7c5db455446522\n",
      "..                                ...\n",
      "749  d6b31acd297a970c95183c314b62a31b\n",
      "750  6c18d3d1e1699a40675eeabd22639f1d\n",
      "751  182e18ab20638c63076894a7ebbce0af\n",
      "752  95ac2d5506901109ed048444f5d015ad\n",
      "753  a1261de0139ba268b6f90fd0f4c30543\n",
      "\n",
      "[754 rows x 1 columns], '志愿者-社会工作者':                                   手机号\n",
      "0    54eb8c7a1390fe8ca0a665ad6c71ad01\n",
      "1    d4b59ab713583ad02c989647fd4d4b06\n",
      "2    78095afb08fd2fb7c8dba5eac6b54302\n",
      "3    ca48fffddec12efec1da4f2aad079dd6\n",
      "4    dc197d2a5da1859a3f6cdd8285c68b32\n",
      "..                                ...\n",
      "465  22c31efc43d053be0a68762cdedd8a27\n",
      "466  a90384a1d152a1fce3881a660604dd6b\n",
      "467  7a81740eec706a9bc7e786c778d9b8e2\n",
      "468  71d2ef00fc0f03dc204ecd6208dce510\n",
      "469  fd13167d5501eb51b4d63659831ece2f\n",
      "\n",
      "[470 rows x 1 columns], '快递-餐饮配送':                                    手机号\n",
      "0     e433704a5213e977712c700eefd0b670\n",
      "1     a7c31ccec0c7af21cbd1d49f4035233a\n",
      "2     fe895b9ad06f2697ff93eeeb6cb7996d\n",
      "3     7f747afa608a7448660e74a94579faa9\n",
      "4     e365f6d137f672c905483f4042234bea\n",
      "...                                ...\n",
      "1018  2b899bd5855752ec78b158419d935dd3\n",
      "1019  aca7a15ac098c701da27ca4efc80a9fd\n",
      "1020  b37d11b7ccff2345f7c298b64c89ac21\n",
      "1021  ef89b76dbaa881270e6841147f3e9207\n",
      "1022  ad0c8959f0c2417b2e235491307a1eec\n",
      "\n",
      "[1023 rows x 1 columns], '房产中介':                                   手机号\n",
      "0    f17c96bdaa1a3a644ea9531b83a09238\n",
      "1    9ec3ef66a0630e84a92accbee000598f\n",
      "2    a9d7cd7e8ff88acff444d1cf3f6d269f\n",
      "3    3cf9113214fcb65d50dd9544a8d13ee8\n",
      "4    9dee5d7b95e7032011f4745b0c83060b\n",
      "..                                ...\n",
      "810  ab79a1948367473142b06b0cf28ae6ea\n",
      "811  f72636b0f6986afb13d347a49c26fe6a\n",
      "812  cc081f6484cc61de62e8d34ad1f76d64\n",
      "813  39bdbae4cc6abcab0a7ef071cba5eee5\n",
      "814  5b4fe5f5503ebd3899b0b3fec8515f18\n",
      "\n",
      "[815 rows x 1 columns], '政府-非营利机构':                                   手机号\n",
      "0    e645de86a747ef1bda187244891a9ae8\n",
      "1    f1004e26dfb0ff4948b958a0ec735fef\n",
      "2    a1d5160f1a0782ab0c3994f75ea7ea91\n",
      "3    31a221188f908a92b5554ed7ecb5b532\n",
      "4    ef1f60b93130492d0dc7554725fc3ec0\n",
      "..                                ...\n",
      "775  0f49076784ee1f19930763502e76fd38\n",
      "776  c5e68357248742f46f3a69d523b396fa\n",
      "777  27a773a373b239b8f4c79d031a41f294\n",
      "778  3e0d71d3674c3a2f5dfa8e795954410e\n",
      "779  1d1d1a063ae23bf477ed7a0cff69bc3f\n",
      "\n",
      "[780 rows x 1 columns], '教育培训':                                   手机号\n",
      "0    c0e55393361fc9f7af0232889e4166e6\n",
      "1    52742381c0224967223ed99711b12ce3\n",
      "2    b75f14cb5ad38292b8788437e67402af\n",
      "3    e1c5d331c966b4c905f457b2ca79d9b9\n",
      "4    12c8e00c6355ba7771e1c9217c535bfe\n",
      "..                                ...\n",
      "457  2b7f484d438aa606b87a8796a7e8513d\n",
      "458  467263fdee610c4cb267d5c584ef09d6\n",
      "459  f23914ffc23466799e9315e8540f5064\n",
      "460  61ac488fc26e3ed09b288150b78b6d7f\n",
      "461  d7f987ce7ee318dd4285797c6fff71f9\n",
      "\n",
      "[462 rows x 1 columns], '旅游':                                   手机号\n",
      "0    0310c99058efcce0a27f1db33e0b4a5c\n",
      "1    da526d60ca030166c51a1ef61f50ba66\n",
      "2    1c2aae8d3d4d6676bb8ff038425004da\n",
      "3    bd422c5f8298eefc5aa5adeb95eadcd6\n",
      "4    7d0b08c064d30686b4941cdbf5b31f66\n",
      "..                                ...\n",
      "581  54d434f1158061521ad1496478b51a0a\n",
      "582  fdd55be974479f26076f5394e2432594\n",
      "583  cc71613da777911a5414574df7cf01f4\n",
      "584  aa9516cd6771706c33dbf652d76bfe40\n",
      "585  25bf710692b4afb93a889cfcb2d1155a\n",
      "\n",
      "[586 rows x 1 columns], '日结零工':                                   手机号\n",
      "0    ee34c4791bd0acf9c4c5fae5de7a8fe3\n",
      "1    3f2a141808fbef859195265646dc084b\n",
      "2    23231bc069c9a3147c5496232f6cc227\n",
      "3    450e880f8548778dae57832138fd4a3d\n",
      "4    b1ff4945e6107cb6232e0a398d4b5638\n",
      "..                                ...\n",
      "287  6a9b21fa82133934fd9e6b133c70017b\n",
      "288  a30b58d8962b5df7744cba99343e6a2e\n",
      "289  3e61f2f034dc80c0a24673f9a2f62eb5\n",
      "290  4308cdaff9124a8866403505d4cb9d7a\n",
      "291  faa7d3e15f15b71694967e650901aaa7\n",
      "\n",
      "[292 rows x 1 columns], '普工-技工':                                    手机号\n",
      "0     8fa4fca670b00e426b8a07bf4a8c380e\n",
      "1     1bef7d80d181dd1deafd1881e8d0cb19\n",
      "2     f0cbc7ea1e7fe88adf9767cbeb53e9a8\n",
      "3     4fe69894693b5dd1356cbb3a5f184d00\n",
      "4     150fcb7d43c2283deaa8d8d318a5c342\n",
      "...                                ...\n",
      "1002  29fdb41d1bf8e01c7f1374e8784d197e\n",
      "1003  3ab7e6b4fb0a77fd60d33488e0a90c55\n",
      "1004  45139b597a254bb9052b0bdbc5264a13\n",
      "1005  d4bb61e86aa3c0555a9bd20013d34669\n",
      "1006  60d9b83d76a41485e3899bad0ed69905\n",
      "\n",
      "[1007 rows x 1 columns], '暑期零工':                                   手机号\n",
      "0    8c5a6b95dd2f337e3d8f9b69cf5a28da\n",
      "1    09c2201ac6f5afbb924bf2f12996bdd1\n",
      "2    743ead09acfc3e2bc4bbaeecb223e263\n",
      "3    6b9c48538968e1a2f1145899f0f923d6\n",
      "4    f13c345c5f87fe3a580663d0a5c28a77\n",
      "..                                ...\n",
      "896  67c36119aacf4b848ab148d51f2389b4\n",
      "897  891b60b4efff51344e81660c714c2a41\n",
      "898  81a10c0d325712a0afc77e6d309552dd\n",
      "899  d9eeaf4727886a068993ce19d9857a5d\n",
      "900  db700cfa8826466be90dd1005986a795\n",
      "\n",
      "[901 rows x 1 columns], '服装-纺织-食品':                                   手机号\n",
      "0    eec8dcc458f2ffb0376491f1ab6e14e2\n",
      "1    413390dbae6e5ef772c727efeecb51d3\n",
      "2    15b90675effbbc29cce66abdcb54d593\n",
      "3    2a61f28269fd86aa6153b73f85dc3033\n",
      "4    192796d60b8a3525a074a2bb9aab1212\n",
      "..                                ...\n",
      "852  e9760755b541c63bdb79c9ad24a94de9\n",
      "853  c3b13ca6267d5c8a29f7219a9c015424\n",
      "854  3de1ce509df5f85fce1b1dd12e04c2ae\n",
      "855  5c184935e491769684596db229735cb2\n",
      "856  41c6ed7c7b7f5bdeb2db822b9206e141\n",
      "\n",
      "[857 rows x 1 columns], '机械-仪器仪表':                                   手机号\n",
      "0    bbf575c1f26d4bcd31d94f752691a36f\n",
      "1    94aa4fa4221030754050f96b58090650\n",
      "2    c22d54ddbb9f6103f0f1da5dd25c3a42\n",
      "3    904d17f6042b5b5ca127a75841b8700f\n",
      "4    26ebf5b3b372fc1da8f6679fef9e1feb\n",
      "..                                ...\n",
      "903  0c29ec82f71547eeb47ee2b4ed99df28\n",
      "904  5d87d576f4ceb6b84708bf4009c4b15e\n",
      "905  d67d2bc5b59462cbe6e253ade64074b9\n",
      "906  982c78cf90ab8a8cc7b3be93988a616e\n",
      "907  dbd028f8a88b9dc7d7aad845faef4640\n",
      "\n",
      "[908 rows x 1 columns], '汽车制造-服务':                                   手机号\n",
      "0    06c07dc6fbe0bfefc447ecbaaf14f2b4\n",
      "1    f20d7dc6db521974abcf955bb52c4df0\n",
      "2    5987f710f51cbd34f5e61ab7d4a29f95\n",
      "3    738c692cc3b4b9b3ec23e2824efa09f9\n",
      "4    466919a93e0451aba345c849e7008abf\n",
      "..                                ...\n",
      "319  b586eab399eabda9fed72321bd376aba\n",
      "320  69d3f8ecef7069eda9ccab207c893dfb\n",
      "321  29e674d06a09a2df58cefd94e9380496\n",
      "322  4f6c402f206fb06fa2b58ad0d39c8b51\n",
      "323  9fc07997e4b6f91458ca893b4aefddf1\n",
      "\n",
      "[324 rows x 1 columns], '法律':                                   手机号\n",
      "0    bd9baeda0076307df17b73ca5cd6f7fb\n",
      "1    2339da0d5dfeb218453d0012caa460fd\n",
      "2    9e3a4870c2800b93219315c31ea9834e\n",
      "3    a41734d91df89aa84963b686a3958cb4\n",
      "4    a408f9dceebb04d163ac4bb7c9eacdb6\n",
      "..                                ...\n",
      "396  6397fb66d8029684f1b59a8d76edf368\n",
      "397  3447278cd678375917fcf93b9bbcb7c3\n",
      "398  d8c17db7d59df60b51f0432f42938c96\n",
      "399  655ae6acefd180a0f5a03515d085f2d8\n",
      "400  90c35cb84577d8d078c2f43d388448f7\n",
      "\n",
      "[401 rows x 1 columns], '淘宝职位':                                   手机号\n",
      "0    efa5a3cb6044c757d91f9d9bfd0199c0\n",
      "1    b8e0e160eaf95cb9321b4ac0303b297a\n",
      "2    9808db31b73222a6908609de947d63c7\n",
      "3    1313b3da323c92469330f4989d30c0af\n",
      "4    b48743a38123784ccaa4d61fbb156469\n",
      "..                                ...\n",
      "896  2a2f63ee4394edb5e5cb9dc079c5c1d9\n",
      "897  5546fffa0cc9b9034185c69b44949261\n",
      "898  e410bffd17dd0de49e3032a562ede758\n",
      "899  539396aab7418428dc651919a6d8ace7\n",
      "900  18dcce8b3e0cf28fdc348599c026b599\n",
      "\n",
      "[901 rows x 1 columns], '物业管理':                                   手机号\n",
      "0    98220c982951b5c928c897f0b942d213\n",
      "1    2dd031c07d288849d16ce69be04035b0\n",
      "2    11bfe1ff09eed2e8b0b027f537139427\n",
      "3    8187033b8c3f0f0984aadd2ce6138878\n",
      "4    9335c4b388fce0d4fcdda1cae52fa593\n",
      "..                                ...\n",
      "163  338a772a671fd4077b8cb08df2ec2669\n",
      "164  40b12bfc449b931ec580f5810bb04f5c\n",
      "165  5a2c798349808038a82ae10bc767e40e\n",
      "166  dab8836baf6d313cecb052e98a119566\n",
      "167  fc32d0091b56de33fcb11feef2e711bd\n",
      "\n",
      "[168 rows x 1 columns], '物流-仓储':                                   手机号\n",
      "0    4b2345a3ce72969d67ccb00aa783581e\n",
      "1    cc4f65c833c4cddabfab79b1bef64bd0\n",
      "2    627cd08f761d64fa8fb7ba9d1f4713f7\n",
      "3    d9a3c5da7cb01f9728f73ce7a2a70203\n",
      "4    85261e71216675994ac9f69fbc7a45c3\n",
      "..                                ...\n",
      "629  18746f6768ece1a6e92064be48c8affc\n",
      "630  883f550c1e43b0e5b5f22b40299f0c1d\n",
      "631  2842fd9978d7fccc1c2c058a4451e6c6\n",
      "632  7716d0e0917554fb8cf444d3faeaa56e\n",
      "633  a357b56563f59f59f83a21d048aeb7a0\n",
      "\n",
      "[634 rows x 1 columns], '环保-能源':                                   手机号\n",
      "0    614e38a667a687987bf1ec0f9633c620\n",
      "1    69e5adb9edfa3c40d9ee14258b917942\n",
      "2    69e763fb8a458acc9bb3bd4dbcf47e0c\n",
      "3    c7c058acbca0edc0476776fcdd1674be\n",
      "4    893433aa7c999a6c732402ae7457cf26\n",
      "..                                ...\n",
      "177  43af3f521d443eb2886a487d4e9b7fab\n",
      "178  693c3129d1080769567712c63d2e253b\n",
      "179  911fa06838efd3fb39e7f31e5329332c\n",
      "180  3cd3901a157b2e25161ce36884b33035\n",
      "181  d67f1b4d0b52eee483b353fff47c2579\n",
      "\n",
      "[182 rows x 1 columns], '生产管理-研发':                                   手机号\n",
      "0    0ba87e7f040c4dbb46107ef33a33b604\n",
      "1    d0f66f1d4f2e0e2ef6a02a2d357e24a1\n",
      "2    6c53efbd4fdbc325beddf0bb5f0d50b4\n",
      "3    300efc6050329150fd328bab6e9b5839\n",
      "4    28fc33106520ffcb9645da0dd740c0f7\n",
      "..                                ...\n",
      "97   33f78a779068bffc8bd704ff66d0fd57\n",
      "98   e6a913c41a014291f7131653eb640dea\n",
      "99   478afcc703983344213c9cc16eab80aa\n",
      "100  63da7c2c9073479738a418a8912a22a0\n",
      "101  323a45d5d6090353e03e24af73c2635b\n",
      "\n",
      "[102 rows x 1 columns], '电子-电气':                                   手机号\n",
      "0    0940ade8c19ea6ae6da184b5acaa2de9\n",
      "1    766b254caa6b41dc3b36138d77f258a1\n",
      "2    3c83332b321f9a8f3fe1a55f57085c3a\n",
      "3    350489e9afc87abd0ad1f1e70ce1f0ad\n",
      "4    55aa18f521e663bd887db0ec30042697\n",
      "..                                ...\n",
      "753  010ab1cf7b30f9616d93f1c00b63ae12\n",
      "754  dd81dd0e1918f9439c1737c80f5abbdc\n",
      "755  fa75b025d6133d09266a6603c05f4105\n",
      "756  e401f2f5568039e8fdcea5aa6e13344f\n",
      "757  6f2080f8a308f3ca425dc0d6a50ee909\n",
      "\n",
      "[758 rows x 1 columns], '短期零工':                                  手机号\n",
      "0   1286cf22f0c5edbc6174cefc2d6858ff\n",
      "1   43ffd455980d651d90c993355ffbb1cd\n",
      "2   23f26179c4f271c4302058b31044338c\n",
      "3   36326eadf233ce0de1f46f701a4f2ca3\n",
      "4   315f2396d9a0ac948d2b9176c6b83629\n",
      "..                               ...\n",
      "94  275e4021592294e8a045299fb2609c2a\n",
      "95  b30e35130b04167c35bca59a818c9759\n",
      "96  77ba16933d344f2ce5a5d21c978b01b5\n",
      "97  aecbc04e3dda01ea1dbdf5971a3a106e\n",
      "98  b5252a8c22e3bbdd8b7d5be20bc7cf5e\n",
      "\n",
      "[99 rows x 1 columns], '编辑-出版-印刷':                                   手机号\n",
      "0    d0fae3e7e9ad4d7462a1e9f9218080fc\n",
      "1    e77ef941b556337d7c112f0a74325744\n",
      "2    ef4b8c60d33268a3d7cdd05c4780b07a\n",
      "3    f552427fbd803336a917a4ba7bed00f9\n",
      "4    7d08c09228e6befb07ee4a8373a53dc8\n",
      "..                                ...\n",
      "854  1088fce89eb6e95f73c87532b54a382a\n",
      "855  0970640951cf76e9c7db4dc0af35525a\n",
      "856  5c065f20f425b3767d2f10f4c1d88b52\n",
      "857  83cc68b15b0702314c8665d77de8e4d5\n",
      "858  811604f187998f8185c413fa24371465\n",
      "\n",
      "[859 rows x 1 columns], '美容-美发':                                   手机号\n",
      "0    92fec88b4d563dc1bef28bb880095766\n",
      "1    a4b417807fa0e1c47b18e5d41005880f\n",
      "2    a8a0395ecb49c162436b36a7df68507f\n",
      "3    eb93c7eb378a2d046fc9a48e6e71108c\n",
      "4    2000458b77ad25f5be6d7a998d142cb8\n",
      "..                                ...\n",
      "310  d90c07c0a0d49bb6edda5cfa4ef647ac\n",
      "311  0b6595459219f7ec7be364335c1da0f4\n",
      "312  4915d994addd842b91b2e0621a26f049\n",
      "313  5c61a9fc40eb27dc7215797c12a80e4c\n",
      "314  a26ff717eb7ef9f7abb3e8faf1ca811c\n",
      "\n",
      "[315 rows x 1 columns], '美术-设计-创意':                                   手机号\n",
      "0    ef4603cbcdc9bf6c0aa7fab38f1b6045\n",
      "1    41b706e48c3868c17942da31496bd800\n",
      "2    569b58eb4c851792024a75548cf50ba6\n",
      "3    1f553ba40b75135324d9f8d889b6618c\n",
      "4    4598d0f878f71a9605cdc5b2648fd9ee\n",
      "..                                ...\n",
      "927  bd891e52033d4769d522c4583a987a3d\n",
      "928  f2ed03a33999159ffa8cbebf797d6b7d\n",
      "929  81024ad7e27e6e7f0b3fab20266c2840\n",
      "930  1e5028572e835a5acdbaae35d9d2d56f\n",
      "931  0bbc96ac982ed471ae0ebbef0e63420d\n",
      "\n",
      "[932 rows x 1 columns], '翻译':                                   手机号\n",
      "0    6442a4cd70fdc110d29422558c34b278\n",
      "1    8474ba12c56653f08f0913550eef5c51\n",
      "2    84105137a7d6f986b582d8d36b262e3a\n",
      "3    1467a5731c808450f5a9de71ce5b0ac7\n",
      "4    66af91e32d6bdc07c2a509544e97603b\n",
      "..                                ...\n",
      "981  9e47de1639b2c6d82056b70a98eeb848\n",
      "982  c19625bb95a9afb973bddfb89286eb80\n",
      "983  3a9ae38d671efb93f9fa323d3626c8e7\n",
      "984  6a293b0ec83e49afbc0ae6ae10edaa99\n",
      "985  6d2eefd578937cffb648f4521964f0a2\n",
      "\n",
      "[986 rows x 1 columns], '职业培训':                                   手机号\n",
      "0    0522ebbc337b4126b1129679e681037e\n",
      "1    2a74adeaf9aa452c59cdc93bb87c903d\n",
      "2    046a02fc263f5fd762cb18caf94394c0\n",
      "3    8b3ad76803a09b7ba3414d45ea5d2943\n",
      "4    1a621f306d8e1fa99e46b9f3bab792e7\n",
      "..                                ...\n",
      "918  68307e7821d09abf100ec97109cbdbee\n",
      "919  d20f934839fbd7c000f7579b4b430f50\n",
      "920  955c9cdd6fb1f3d36580a7806f8f5237\n",
      "921  a74b18200a82439afac10cce468e8037\n",
      "922  a558c365505f9b96cacb6ac93c902cae\n",
      "\n",
      "[923 rows x 1 columns], '计算机-互联网-通信':                                   手机号\n",
      "0    55c2a17f38af9ad901d2bbc7a0665430\n",
      "1    31a37719e8270bb08e6affbe458fb203\n",
      "2    e4e3fc55ac8ded5545388169fd18f998\n",
      "3    53999e7de75a9832ccb6d4388ed31223\n",
      "4    041e9e9d9c9f5f3565c09bdc71ee5bac\n",
      "..                                ...\n",
      "669  6e9d95834689547b0095af20f28e428d\n",
      "670  43907f8dd4f6c1db99becb7d7f2e3cf8\n",
      "671  88ac7cd3dec9ace4882bc2b5ef1ae103\n",
      "672  297f287d02eb520fbd3c2203360f39fa\n",
      "673  8acd6e33328fc02518233ffaa81aac44\n",
      "\n",
      "[674 rows x 1 columns], '财务-审计-统计':                                   手机号\n",
      "0    795a9289d7296d3dbfaf939562e694c3\n",
      "1    d47266426f5366e3ac80fdd256670de6\n",
      "2    aa3051730bb9e72eabd9e3d350c15f84\n",
      "3    c026a8d65f99bde95abb249af2b2fdd4\n",
      "4    5ecf16964d88f70386c1eb5d7d34e9fd\n",
      "..                                ...\n",
      "282  bf7882b496c1e52820dd7cb19c2c9ddc\n",
      "283  a62827173b750b21f7a02605414c0c1d\n",
      "284  93fa4e7d2ad2c32dcd45eb611ac9dc6a\n",
      "285  063fa7c0b6333a613231302d40c4144a\n",
      "286  3f91c758a9d2fb89129b3fd9a622e898\n",
      "\n",
      "[287 rows x 1 columns], '质控-安防':                                   手机号\n",
      "0    d93235018d7db67acb29e5c075025dc4\n",
      "1    77709b782757219d80da8c9466a6d6ff\n",
      "2    bd7494e9cdd047f42e72ec26dcb11865\n",
      "3    9857d1b72be88d109fc4c2f5b2233835\n",
      "4    a0729e763f0da60e10352c407bb83938\n",
      "..                                ...\n",
      "479  2104b918b0898caace0705ff2e7fee89\n",
      "480  6981bb7a0d359aad91bb9e5bd857b59b\n",
      "481  c3de5054f4dccab9e26c729189af6bdd\n",
      "482  d796af38cd00c9f2212b0734a79472be\n",
      "483  760aec602b8ec11e58ed5a5a558809c4\n",
      "\n",
      "[484 rows x 1 columns], '贸易-采购':                                   手机号\n",
      "0    64121a0de3ccf23189494e81e3adc75d\n",
      "1    40d70b39dddd037f8364350e8750a4f4\n",
      "2    8d127a80101f8e875a069528b903170d\n",
      "3    acf6f71528cb09830cffe7a62e84de69\n",
      "4    9fd083c3429f5165389166f66f25b55f\n",
      "..                                ...\n",
      "825  0406604bfa16561a4146e7634fec406c\n",
      "826  6586025a40fbd275e5c065d41a48e05b\n",
      "827  c97a5c85bbc49245de3df2670c0507b9\n",
      "828  7c8eeb4bd9ad97185514bc69c435b792\n",
      "829  ae402559672d582179b09f5d0da3f5c2\n",
      "\n",
      "[830 rows x 1 columns], '超市-百货-零售':                                   手机号\n",
      "0    7d13e05fc296b90592bfdd9a9f94bd56\n",
      "1    83df6b9e78eae0be2dce82d4b4196292\n",
      "2    fd0e5b8fb71c49f624ad1c9539b05776\n",
      "3    00427f283ff2a1201f51fd207eeca670\n",
      "4    186c1d14786c0ceb0942f7cca0ddeae4\n",
      "..                                ...\n",
      "285  fd78dc48a9f55c5b7f0d3e12b5c3b46e\n",
      "286  15ecea5b874356980f63304edbe587d3\n",
      "287  fd919e13347b45c1ad45db65db78f9c6\n",
      "288  f3be7671370944108b85850ea12e7e11\n",
      "289  107352accb0d6d9acbc2f2e9812e815a\n",
      "\n",
      "[290 rows x 1 columns], '运动健身':                                   手机号\n",
      "0    c10304ba5e13f140c15d9ca2356abec2\n",
      "1    d9226f16cfa47de489b1ceb89577d132\n",
      "2    2b4f42570afa5c309ae90b3d1babdbc3\n",
      "3    19217cd8626882e809026705d9e0518f\n",
      "4    dfae5bcf8e9c80547ca8935bdb36885e\n",
      "..                                ...\n",
      "273  b2425458ed3bd487c5adde2788bb14be\n",
      "274  9c26cc78dc053544f360b652091c7642\n",
      "275  4f0ac92c53ca2eb8f6f401fce6a4c88e\n",
      "276  1e1d662a68658ebf34b78b88e9d7383c\n",
      "277  07306fe0c88f4e08a27cb11053c7fee0\n",
      "\n",
      "[278 rows x 1 columns], '酒店':                                   手机号\n",
      "0    2c86d1a593615c6a8f66325d0354f515\n",
      "1    204164915952a994c84457dfa40be16f\n",
      "2    81c0b9c550bade46fadf950c70f38edd\n",
      "3    980e63f4a5523dc0914089659c590e34\n",
      "4    3da1480bd6c6f1d68719750180f9f9b8\n",
      "..                                ...\n",
      "326  7b48fc2ab4d3c08912a91b5d2ab17945\n",
      "327  fcfd0ed7bef9c1cf47beb9e59ff38b3b\n",
      "328  8e6d7e9cd6fd6fc3f702afdc068a7ab2\n",
      "329  006681b4f2457b490297976a6a8f004c\n",
      "330  632bc8dc3fd7a0c0c300d1edb068114c\n",
      "\n",
      "[331 rows x 1 columns], '金融-银行-证券-投资':                                   手机号\n",
      "0    3fc15e129aac59d9a762e32de252d0bb\n",
      "1    ac9a7166828370816ef4217887732e58\n",
      "2    12956d3c75ea3767994d0a329a4b4859\n",
      "3    e1e27e27c8e293906ccf1913c35eacf3\n",
      "4    d2396e3ce267b8106c23640efa04d565\n",
      "..                                ...\n",
      "277  1123e78706011364c4798b90fe9deb76\n",
      "278  284fefefd72ae21e0afe6287cf1e4981\n",
      "279  3ed5b5be09b52af2082cdc42f92b3a98\n",
      "280  56814bbe971542d60aba7a0a32feb0f0\n",
      "281  1e2c5e6e386a24fe9e3a3a76b4ac4fb6\n",
      "\n",
      "[282 rows x 1 columns], '销售11':                                   手机号\n",
      "0    930b0c9c060c2a28eb01804d59a2d072\n",
      "1    0605b872ca6fccdd40491203f10b3639\n",
      "2    b3b974ff8934ab9ca6dc64d31151c2cc\n",
      "3    64b8edd6b12fc36137178fe70be0c4b1\n",
      "4    dd0e4216928d5b6913603faf54b32103\n",
      "..                                ...\n",
      "381  505550f1342dd6773690c3eaffdcc4b9\n",
      "382  87e0204e6a27e89970c727c03bdf3923\n",
      "383  367f8c391882ee6e7bb2ea9131087d6e\n",
      "384  f974d394d9382eaf3d8ed9e5a4abe4df\n",
      "385  81b841f8aff8824643c3e98568655b50\n",
      "\n",
      "[386 rows x 1 columns], '餐饮':                                   手机号\n",
      "0    dcd78474425bd5d587dea4c089f7540c\n",
      "1    ef19f7e01c2c85cb35a3efcd0193da30\n",
      "2    67e41721f2d644d73a66652815fee178\n",
      "3    72dea83ccbfb2b8560f38c2b9ddcf8cf\n",
      "4    090e6578f7c5f353741b09328e24f141\n",
      "..                                ...\n",
      "295  e39cb242ca8cb1b00cf18b54e353f398\n",
      "296  368ecb7bc144ee48ba85b9f1d11effd5\n",
      "297  a05ad9b98b302511853cd12ab5a25af0\n",
      "298  f58fa5fba46d4c3753d7c10d4b516d8f\n",
      "299  b7a2a0b2ed47f62195c646a1235a62dc\n",
      "\n",
      "[300 rows x 1 columns], '餐饮零工':                                   手机号\n",
      "0    e965d3aecd90eb108e6f81fd62b35d3f\n",
      "1    40482e87d468d48d7be3c13e7e679413\n",
      "2    4c10e358c2fd732433e7ff39bddd5cd8\n",
      "3    80cf3be37a6ae4ec9a34753ed162c4b8\n",
      "4    bc35ebf17f6d5159e764f7179943a6b4\n",
      "..                                ...\n",
      "383  6688b336b7952a3426035eafe3f6588e\n",
      "384  ff5faacf8f22eb5d2dd0c8044aabd1bd\n",
      "385  5a5c52e43a2de96c3b5a483c4863f4a2\n",
      "386  ea5a184f7a788d5f28c82140769a70b1\n",
      "387  6e56475d200abad88b416fa69e6fd3b7\n",
      "\n",
      "[388 rows x 1 columns], '高级管理':                                   手机号\n",
      "0    2ee9e7b5c4a56e6ed65f2b48aed7fdd8\n",
      "1    d6239b7d3ebfd719488187fbcc183892\n",
      "2    2f7443c69bcd55caa2b77089b3c91bad\n",
      "3    01cd272378c2891fb43fc64c11f348d6\n",
      "4    e28b5363b9b7d1fa7a1b5581a2dc67ec\n",
      "..                                ...\n",
      "388  a65aefdaeefec36a1050388ca7898d71\n",
      "389  a431c672c62d3e3abbf0d438a1854129\n",
      "390  d7d2f00bd2102105085a36dd3383e7e0\n",
      "391  3847ac14c994d8f3d3c00d7ef22bcc62\n",
      "392  b6323123ae73a9ada0fd62f7d72dba01\n",
      "\n",
      "[393 rows x 1 columns]}\n"
     ]
    }
   ],
   "source": [
    "# 读取顾客信息中的全部数据，格式：{\"sheet_name\":dataframe}\n",
    "customer_pd_dict = pd.read_excel(r\"C:\\Users\\Administrator\\Downloads\\第三周sql\\第三周课程课件\\第三周第十节项目资料\\数据\\顾客信息.xlsx\",\n",
    "                                sheet_name = None)\n",
    "type(customer_pd_dict)\n",
    "print(customer_pd_dict)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>手机号</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>94a20c908ea398cefba903e2d6598ea2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>5abd29bae58e80cc2513b9aa0f3dd598</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>90875eb5b8fc1c84cf9a395f642ac092</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>05f8673bd351bdb9bf3f503013784da8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>f4e507f349ac8455d8426db77c377636</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                手机号\n",
       "0  94a20c908ea398cefba903e2d6598ea2\n",
       "1  5abd29bae58e80cc2513b9aa0f3dd598\n",
       "2  90875eb5b8fc1c84cf9a395f642ac092\n",
       "3  05f8673bd351bdb9bf3f503013784da8\n",
       "4  f4e507f349ac8455d8426db77c377636"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "customer_pd_dict[\"人事-行政-后勤\"].head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "人事-行政-后勤\n",
      "保健按摩\n",
      "保险\n",
      "其他职位\n",
      "农-林-牧-渔业\n",
      "制药-生物工程\n",
      "化工\n",
      "医院-医疗-护理\n",
      "司机-交通服务\n",
      "商超零工\n",
      "实习生-培训生-储备干部\n",
      "客服\n",
      "家政保洁-安保\n",
      "工厂零工\n",
      "市场-媒介-公关\n",
      "广告-会展-咨询\n",
      "建筑\n",
      "影视-娱乐-休闲\n",
      "志愿者-社会工作者\n",
      "快递-餐饮配送\n",
      "房产中介\n",
      "政府-非营利机构\n",
      "教育培训\n",
      "旅游\n",
      "日结零工\n",
      "普工-技工\n",
      "暑期零工\n",
      "服装-纺织-食品\n",
      "机械-仪器仪表\n",
      "汽车制造-服务\n",
      "法律\n",
      "淘宝职位\n",
      "物业管理\n",
      "物流-仓储\n",
      "环保-能源\n",
      "生产管理-研发\n",
      "电子-电气\n",
      "短期零工\n",
      "编辑-出版-印刷\n",
      "美容-美发\n",
      "美术-设计-创意\n",
      "翻译\n",
      "职业培训\n",
      "计算机-互联网-通信\n",
      "财务-审计-统计\n",
      "质控-安防\n",
      "贸易-采购\n",
      "超市-百货-零售\n",
      "运动健身\n",
      "酒店\n",
      "金融-银行-证券-投资\n",
      "销售11\n",
      "餐饮\n",
      "餐饮零工\n",
      "高级管理\n"
     ]
    }
   ],
   "source": [
    "#每个dataframe添加种类列\n",
    "for key in customer_pd_dict.keys():\n",
    "    customer_pd_dict[key][\"种类\"] = key\n",
    "    print(key)\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>手机号</th>\n",
       "      <th>种类</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>94a20c908ea398cefba903e2d6598ea2</td>\n",
       "      <td>人事-行政-后勤</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>5abd29bae58e80cc2513b9aa0f3dd598</td>\n",
       "      <td>人事-行政-后勤</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>90875eb5b8fc1c84cf9a395f642ac092</td>\n",
       "      <td>人事-行政-后勤</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>05f8673bd351bdb9bf3f503013784da8</td>\n",
       "      <td>人事-行政-后勤</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>f4e507f349ac8455d8426db77c377636</td>\n",
       "      <td>人事-行政-后勤</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                手机号        种类\n",
       "0  94a20c908ea398cefba903e2d6598ea2  人事-行政-后勤\n",
       "1  5abd29bae58e80cc2513b9aa0f3dd598  人事-行政-后勤\n",
       "2  90875eb5b8fc1c84cf9a395f642ac092  人事-行政-后勤\n",
       "3  05f8673bd351bdb9bf3f503013784da8  人事-行政-后勤\n",
       "4  f4e507f349ac8455d8426db77c377636  人事-行政-后勤"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "customer_pd_dict[\"人事-行政-后勤\"].head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "人事-行政-后勤\n",
      "保健按摩\n",
      "保险\n",
      "其他职位\n",
      "农-林-牧-渔业\n",
      "制药-生物工程\n",
      "化工\n",
      "医院-医疗-护理\n",
      "司机-交通服务\n",
      "商超零工\n",
      "实习生-培训生-储备干部\n",
      "客服\n",
      "家政保洁-安保\n",
      "工厂零工\n",
      "市场-媒介-公关\n",
      "广告-会展-咨询\n",
      "建筑\n",
      "影视-娱乐-休闲\n",
      "志愿者-社会工作者\n",
      "快递-餐饮配送\n",
      "房产中介\n",
      "政府-非营利机构\n",
      "教育培训\n",
      "旅游\n",
      "日结零工\n",
      "普工-技工\n",
      "暑期零工\n",
      "服装-纺织-食品\n",
      "机械-仪器仪表\n",
      "汽车制造-服务\n",
      "法律\n",
      "淘宝职位\n",
      "物业管理\n",
      "物流-仓储\n",
      "环保-能源\n",
      "生产管理-研发\n",
      "电子-电气\n",
      "短期零工\n",
      "编辑-出版-印刷\n",
      "美容-美发\n",
      "美术-设计-创意\n",
      "翻译\n",
      "职业培训\n",
      "计算机-互联网-通信\n",
      "财务-审计-统计\n",
      "质控-安防\n",
      "贸易-采购\n",
      "超市-百货-零售\n",
      "运动健身\n",
      "酒店\n",
      "金融-银行-证券-投资\n",
      "销售11\n",
      "餐饮\n",
      "餐饮零工\n",
      "高级管理\n"
     ]
    }
   ],
   "source": [
    "for item in customer_pd_dict:\n",
    "    print(item)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>手机号</th>\n",
       "      <th>种类</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>94a20c908ea398cefba903e2d6598ea2</td>\n",
       "      <td>人事-行政-后勤</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>5abd29bae58e80cc2513b9aa0f3dd598</td>\n",
       "      <td>人事-行政-后勤</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>90875eb5b8fc1c84cf9a395f642ac092</td>\n",
       "      <td>人事-行政-后勤</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>05f8673bd351bdb9bf3f503013784da8</td>\n",
       "      <td>人事-行政-后勤</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>f4e507f349ac8455d8426db77c377636</td>\n",
       "      <td>人事-行政-后勤</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                手机号        种类\n",
       "0  94a20c908ea398cefba903e2d6598ea2  人事-行政-后勤\n",
       "1  5abd29bae58e80cc2513b9aa0f3dd598  人事-行政-后勤\n",
       "2  90875eb5b8fc1c84cf9a395f642ac092  人事-行政-后勤\n",
       "3  05f8673bd351bdb9bf3f503013784da8  人事-行政-后勤\n",
       "4  f4e507f349ac8455d8426db77c377636  人事-行政-后勤"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#合并多个dataframe\n",
    "df_customer = pd.concat(\n",
    "    [customer_pd_dict[key] for key in customer_pd_dict.keys()],\n",
    "    axis = 0  #行合并\n",
    ")\n",
    "\n",
    "df_customer.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "                                  手机号        种类\n",
      "0    94a20c908ea398cefba903e2d6598ea2  人事-行政-后勤\n",
      "1    5abd29bae58e80cc2513b9aa0f3dd598  人事-行政-后勤\n",
      "2    90875eb5b8fc1c84cf9a395f642ac092  人事-行政-后勤\n",
      "3    05f8673bd351bdb9bf3f503013784da8  人事-行政-后勤\n",
      "4    f4e507f349ac8455d8426db77c377636  人事-行政-后勤\n",
      "..                                ...       ...\n",
      "716  b6a457de3912bf162025de45990f4771  人事-行政-后勤\n",
      "717  fb77f39bfc791cbeba8daa2ae2dbc435  人事-行政-后勤\n",
      "718  ccbfe2f9e9c373eb7f1747e2691ce6e1  人事-行政-后勤\n",
      "719  5f8e8dcadaf71f69dfe5133baa282ecc  人事-行政-后勤\n",
      "720  7cf94b49569fc0df9982b9b03caf04c9  人事-行政-后勤\n",
      "\n",
      "[721 rows x 2 columns]\n",
      "                                  手机号    种类\n",
      "0    4dda64e85fc489ec29d654b3d92ae8da  保健按摩\n",
      "1    0c68b19cf579e7d0038c3e9f6bd94ff9  保健按摩\n",
      "2    5e18abde83f809cbc332c50fc5e7ef13  保健按摩\n",
      "3    da19276d97df45e61f5a2b6d09c57389  保健按摩\n",
      "4    9e4729ca9593ed81cb6ca953956da78f  保健按摩\n",
      "..                                ...   ...\n",
      "487  cb383e860f99312e7ff7030b793c57c9  保健按摩\n",
      "488  2e9ada0ccba0190bca2e07e3ce20e5e6  保健按摩\n",
      "489  e207a916ee6d72f3edb51686dfa7138b  保健按摩\n",
      "490  1f0a31a5ec3e12ea95f3d78c284fbccb  保健按摩\n",
      "491  faa862ad4db4e6c6f70aabf08f2919bc  保健按摩\n",
      "\n",
      "[492 rows x 2 columns]\n",
      "                                  手机号  种类\n",
      "0    6a372cbf4c959259dca37aaff6674486  保险\n",
      "1    be496326a08f647407e3370c19d6d6b1  保险\n",
      "2    5126b94d3960ad90c4753abd3b64bcbf  保险\n",
      "3    c534434a9839b9808c1773b1a971199f  保险\n",
      "4    d48b9334f394a790c36f287386ad9bd8  保险\n",
      "..                                ...  ..\n",
      "900  906c5d44c18edb2af5f5ba0b0bbdbd3e  保险\n",
      "901  7b10ed9a5c18c680f8fffbe4d843d022  保险\n",
      "902  8f5ced6304d25ae0a9623343b72d86b3  保险\n",
      "903  6cdb3717a57567a20aa81f6947b76bf3  保险\n",
      "904  ad133df442c80a4ebca0f9a4bddf7069  保险\n",
      "\n",
      "[905 rows x 2 columns]\n",
      "                                 手机号    种类\n",
      "0   5f4a6a40e87ae9ffa5b9f9dfc8ff5d83  其他职位\n",
      "1   39e03c006867a0f67d6f01849d3236bb  其他职位\n",
      "2   cb4af484f0ee0e6c1c1a78eab2d077b9  其他职位\n",
      "3   e1a5abcfbcaf943e2688240d8d1c765e  其他职位\n",
      "4   11373bfe0d78e9cdf7724ccb2405ebfd  其他职位\n",
      "..                               ...   ...\n",
      "85  567c3787833c75a5d04d818817f89181  其他职位\n",
      "86  6f3e0a42f355fd2c2d795dc2da24bda8  其他职位\n",
      "87  91cad7137358f625bf38bd7202be7ab6  其他职位\n",
      "88  4c4a5a5be55a813a795b2a6c23e5a258  其他职位\n",
      "89  7de4e47a9900ffbfdcba088603435405  其他职位\n",
      "\n",
      "[90 rows x 2 columns]\n",
      "                                  手机号        种类\n",
      "0    06fc2ebf7a6f61e15106ab5ac2a80f5e  农-林-牧-渔业\n",
      "1    fde205cba73fa69b3aefa5a362926012  农-林-牧-渔业\n",
      "2    edb304d7732685a75ae3fcd5d76f32e2  农-林-牧-渔业\n",
      "3    0d4b5f9abfd6228168f373f057ee4ab7  农-林-牧-渔业\n",
      "4    b18391f3b727cb5749df3cf7bd8936d1  农-林-牧-渔业\n",
      "..                                ...       ...\n",
      "524  fba8daa11e5caf46060249100e8c445f  农-林-牧-渔业\n",
      "525  ba230d55b014ab0039853e9c5176a370  农-林-牧-渔业\n",
      "526  776ccaff7c1b076ce44463ac1b5ffde0  农-林-牧-渔业\n",
      "527  cd33adb68add5e5006ca7af104e4db61  农-林-牧-渔业\n",
      "528  1232a790094cb3bea2c692a6e663ec9b  农-林-牧-渔业\n",
      "\n",
      "[529 rows x 2 columns]\n",
      "                                 手机号       种类\n",
      "0   6d9e89f1af72d16ee35abf46ddde391f  制药-生物工程\n",
      "1   5b08e1c6bbd1e40120365e5ccd1fe9f1  制药-生物工程\n",
      "2   69fd065e94173935645c052e4a04e5e2  制药-生物工程\n",
      "3   8b8607aaf9d4886e3d39f77e296a35a9  制药-生物工程\n",
      "4   5807470c5f3fa702ac3d6f2baa895fd9  制药-生物工程\n",
      "..                               ...      ...\n",
      "92  db8cf07b000e94d123f5e55c093c07c3  制药-生物工程\n",
      "93  68a26774e50f90433543f1aee588ed8f  制药-生物工程\n",
      "94  8dc4adcf671b62ec70a26d357a2199f9  制药-生物工程\n",
      "95  3dc7a564710146cd1d2bdcf24c11e8f3  制药-生物工程\n",
      "96  d5cebdb1f6da2f20c12049e03d719d2b  制药-生物工程\n",
      "\n",
      "[97 rows x 2 columns]\n",
      "                                  手机号  种类\n",
      "0    3a844a5c25dedb64a0e45ed0dab1fe65  化工\n",
      "1    4fce0f7fceebd68900a78784e37170c6  化工\n",
      "2    f644cbe24fd46573e938db0c568b9287  化工\n",
      "3    0cf964f1f2a05ec683a44f7a7920ee00  化工\n",
      "4    49ae65082ae92197507330e6a74b00a2  化工\n",
      "..                                ...  ..\n",
      "831  d56a0648a06a41908cf1b4c3c5b7d3c4  化工\n",
      "832  6a4a2bb8212963335276efdb7297ad8b  化工\n",
      "833  c60d723cc428aaf974d1028df7333348  化工\n",
      "834  bc7dd0ac2da525224f7e4cbfab68c223  化工\n",
      "835  218e029a14bef5be026cad255516b88a  化工\n",
      "\n",
      "[836 rows x 2 columns]\n",
      "                                  手机号        种类\n",
      "0    3b923e27d8ddd6c0bba640d3580a5c43  医院-医疗-护理\n",
      "1    acae75a8c9d7bf3dc0c2be2fd9f9dcf0  医院-医疗-护理\n",
      "2    a27290c3e7ec15a24d0ac30d142df2cd  医院-医疗-护理\n",
      "3    c7baa7713a43056386d6a32b28d12418  医院-医疗-护理\n",
      "4    c8739c50bfe7475ed55b5c83bcb33ad1  医院-医疗-护理\n",
      "..                                ...       ...\n",
      "503  dfd48e7378045c270f5c5a02cd108a99  医院-医疗-护理\n",
      "504  e81d2754e277246f193a44ea01f7a683  医院-医疗-护理\n",
      "505  5ba0af31f85130c69d6cbdd66ef97c0d  医院-医疗-护理\n",
      "506  2eab4af504ff78ad977ed77067306fde  医院-医疗-护理\n",
      "507  de215c0b90af42d2fca7f36b0dad4241  医院-医疗-护理\n",
      "\n",
      "[508 rows x 2 columns]\n",
      "                                  手机号       种类\n",
      "0    4461a11db21a1d54f1866210a28d8157  司机-交通服务\n",
      "1    2cf6b11ec2d2399bdcd53d2903bb280c  司机-交通服务\n",
      "2    fde00897ce7893692fabecc338d4bb66  司机-交通服务\n",
      "3    05150614cfd282eafd3a249acb8dd2c2  司机-交通服务\n",
      "4    77cec4b351295bb7365601284316529e  司机-交通服务\n",
      "..                                ...      ...\n",
      "459  8a735567aa80a42e089b8693d43195fc  司机-交通服务\n",
      "460  f78810d7bff2b11ba75c6e07606c1deb  司机-交通服务\n",
      "461  a7602e3dbecfced2b5ff56de7b3f27f3  司机-交通服务\n",
      "462  2322c004f633df0f01e563129d7aa879  司机-交通服务\n",
      "463  61a8cd845d4d2ee2537a98565f4ca5b8  司机-交通服务\n",
      "\n",
      "[464 rows x 2 columns]\n",
      "                                  手机号    种类\n",
      "0    7b164586550acca5a446a00be8d5337d  商超零工\n",
      "1    275ed13af1e8b5d486ac5de5f36eb8b6  商超零工\n",
      "2    b51d2c4db3ec7a428c831f953454ea07  商超零工\n",
      "3    88eda03eecf5ac33767c846bb7bdc359  商超零工\n",
      "4    dad805ecfa270de133d35e77b2b76f3d  商超零工\n",
      "..                                ...   ...\n",
      "482  127aa5eb99698c4c510f035d47241b4a  商超零工\n",
      "483  9db2961d6da46a8450cbd5d504617423  商超零工\n",
      "484  8c0bcf332863c18c2da61e4eb7925ad0  商超零工\n",
      "485  662eff53bdaf6ba710437d6bc7940b35  商超零工\n",
      "486  5dc0841914535d72bd558cab501acba4  商超零工\n",
      "\n",
      "[487 rows x 2 columns]\n",
      "                                  手机号            种类\n",
      "0    c5331d188bb13269a2590569564f4385  实习生-培训生-储备干部\n",
      "1    967e7e009e0d14dea75048c38b249366  实习生-培训生-储备干部\n",
      "2    2c20f4015681c12c4ce936e21e292dc5  实习生-培训生-储备干部\n",
      "3    e519a1a93e749a6e8e9c8bcb23d3d544  实习生-培训生-储备干部\n",
      "4    34afac25756500b42f293f14387135e2  实习生-培训生-储备干部\n",
      "..                                ...           ...\n",
      "193  1e69b41ee0b4e702bdf39eaba08743e2  实习生-培训生-储备干部\n",
      "194  20f822fbf787c3e089cfaa9894efbe88  实习生-培训生-储备干部\n",
      "195  b2db4317b10ff1550c6e4a31e46ff9d4  实习生-培训生-储备干部\n",
      "196  d2eacc032af0db61298f752ca82be4a4  实习生-培训生-储备干部\n",
      "197  1e84f3f1d5793c9801e2516b505d219a  实习生-培训生-储备干部\n",
      "\n",
      "[198 rows x 2 columns]\n",
      "                                  手机号  种类\n",
      "0    055e2ec08aa799a7a8a02cadf401c556  客服\n",
      "1    86d84a840f593cca23e4c6e60fcf4f3e  客服\n",
      "2    93f4ad43138d1e9f6ad8cd1e95500dcb  客服\n",
      "3    992c438730ece0f093080caf1c71462f  客服\n",
      "4    e826a292084a61c66ba1d346ce042f66  客服\n",
      "..                                ...  ..\n",
      "695  c579c3e5524b647144c37aae22f88c7c  客服\n",
      "696  089848272c3314a3a33c0afb5c7fbad1  客服\n",
      "697  d38561aeae1a7f0fad35d56a8ddf6008  客服\n",
      "698  daab7c3965b09c14605b917303682e1a  客服\n",
      "699  90ff9d5e58e0f6e2b26d12d22d8229a7  客服\n",
      "\n",
      "[700 rows x 2 columns]\n",
      "                                 手机号       种类\n",
      "0   b7130f79ee50c568ccd381eea994c557  家政保洁-安保\n",
      "1   9dde31e8a66e0671513988924c3f1fef  家政保洁-安保\n",
      "2   eca65437d2981f2c42629c4a73dd3a71  家政保洁-安保\n",
      "3   ab1aecda0a0a47c0f7317334ff3ac489  家政保洁-安保\n",
      "4   5f9d5074c0114f02319bb0b3492fa6b4  家政保洁-安保\n",
      "..                               ...      ...\n",
      "92  79315c232d66293b1d077e8c0ebaa3a9  家政保洁-安保\n",
      "93  35f5696fd6daec38d24cb871949ad81b  家政保洁-安保\n",
      "94  4586a0f71a159fd33328551f814464c0  家政保洁-安保\n",
      "95  b5352a87775e49d61e426824f66b5c2e  家政保洁-安保\n",
      "96  9ad32c8f85a16d9121af822fea6942b8  家政保洁-安保\n",
      "\n",
      "[97 rows x 2 columns]\n",
      "                                  手机号    种类\n",
      "0    df985e3b7adf3a1d0a3d4d7046ff521e  工厂零工\n",
      "1    a74942c9bcb66da5e718a5412a23a27c  工厂零工\n",
      "2    048af297c89ec3440816c7270866ff1f  工厂零工\n",
      "3    b1a3102a0f4fc2e4619f3c291f3ca19f  工厂零工\n",
      "4    cc59c22b95a573099d23ab3b9b71c4f8  工厂零工\n",
      "..                                ...   ...\n",
      "778  14dec36b94de0445cb238c882661fc83  工厂零工\n",
      "779  7d736acf8145154e26223be04f32cf9a  工厂零工\n",
      "780  6a959a48b112676754ba444610037364  工厂零工\n",
      "781  4d6b21afeaf027185299a76619b65db0  工厂零工\n",
      "782  a005ab93a1eb833002c37e2827faa771  工厂零工\n",
      "\n",
      "[783 rows x 2 columns]\n",
      "                                  手机号        种类\n",
      "0    5391c355d8dc084c26d54e186d525cd7  市场-媒介-公关\n",
      "1    d7ffd1032dfba069911c794d9be72676  市场-媒介-公关\n",
      "2    41ab777f7525f415d97938267d00ad75  市场-媒介-公关\n",
      "3    ecfb1cebfb230d734dc2b4a45610d195  市场-媒介-公关\n",
      "4    d065d85fd72b4312e7536652c13a4265  市场-媒介-公关\n",
      "..                                ...       ...\n",
      "472  80c9bcbec8a49af0bdb83090ca8c6e46  市场-媒介-公关\n",
      "473  d565043d3edf94da9d04efd12dc3b3ba  市场-媒介-公关\n",
      "474  f47f3aecc87703bc15dc013607902c38  市场-媒介-公关\n",
      "475  cb3fca8a6ebddaa290e91fb013028929  市场-媒介-公关\n",
      "476  c3e47fecfc65827bbc4757beb6375aea  市场-媒介-公关\n",
      "\n",
      "[477 rows x 2 columns]\n",
      "                                  手机号        种类\n",
      "0    0103eff32db8682075ae345850f5417f  广告-会展-咨询\n",
      "1    15f6bda69a8402c35c0a188a2f88b31e  广告-会展-咨询\n",
      "2    24ff1adde143c1f65432f05c0bdf6872  广告-会展-咨询\n",
      "3    ccad0c96b243d7c5aeffa69121de45ea  广告-会展-咨询\n",
      "4    3ea171e9098997a5ef7f720c8268562f  广告-会展-咨询\n",
      "..                                ...       ...\n",
      "969  6add1b19a5b4f54f96f9dd818c2c1418  广告-会展-咨询\n",
      "970  9bc034688e7de971ef14cf6b90c4d090  广告-会展-咨询\n",
      "971  d5a3bfde7a1499910b040a5c97c3480f  广告-会展-咨询\n",
      "972  3751b4b43d3b369442ba046acf3eba23  广告-会展-咨询\n",
      "973  b7fadf8142efe0692c3314631e01dcb0  广告-会展-咨询\n",
      "\n",
      "[974 rows x 2 columns]\n",
      "                                  手机号  种类\n",
      "0    c993bf7bf181bc28dbca1fa6346ed045  建筑\n",
      "1    bb908f72e26f0604c8496aea793afa9c  建筑\n",
      "2    064f93a96b6f2e3a587be6fe27e9c1c5  建筑\n",
      "3    00a5cba4c3e9dcb7a3c818fc960f2b94  建筑\n",
      "4    a66c81a565b4f3b1bf034b41ef0e822e  建筑\n",
      "..                                ...  ..\n",
      "275  540661067bb6688a1e315f1b76dec7fc  建筑\n",
      "276  3544aa8d3291133772b094ee847056f1  建筑\n",
      "277  38ea8c36cbe51f423003c8df62a1da20  建筑\n",
      "278  d07fdf944e7f4ebdc4c51623f841bc6b  建筑\n",
      "279  067bbd137b85bc47ebeaf168bed15db2  建筑\n",
      "\n",
      "[280 rows x 2 columns]\n",
      "                                  手机号        种类\n",
      "0    25d3ab7d9263228383854842ac6d739f  影视-娱乐-休闲\n",
      "1    3975d9c850108ca5e7e087eee03bb8d5  影视-娱乐-休闲\n",
      "2    4f47a90d92119bd41f374ffe3fa9c3c2  影视-娱乐-休闲\n",
      "3    eff465ab031699489939cbde7779cb60  影视-娱乐-休闲\n",
      "4    cdf7b7e3df790fd95c7c5db455446522  影视-娱乐-休闲\n",
      "..                                ...       ...\n",
      "749  d6b31acd297a970c95183c314b62a31b  影视-娱乐-休闲\n",
      "750  6c18d3d1e1699a40675eeabd22639f1d  影视-娱乐-休闲\n",
      "751  182e18ab20638c63076894a7ebbce0af  影视-娱乐-休闲\n",
      "752  95ac2d5506901109ed048444f5d015ad  影视-娱乐-休闲\n",
      "753  a1261de0139ba268b6f90fd0f4c30543  影视-娱乐-休闲\n",
      "\n",
      "[754 rows x 2 columns]\n",
      "                                  手机号         种类\n",
      "0    54eb8c7a1390fe8ca0a665ad6c71ad01  志愿者-社会工作者\n",
      "1    d4b59ab713583ad02c989647fd4d4b06  志愿者-社会工作者\n",
      "2    78095afb08fd2fb7c8dba5eac6b54302  志愿者-社会工作者\n",
      "3    ca48fffddec12efec1da4f2aad079dd6  志愿者-社会工作者\n",
      "4    dc197d2a5da1859a3f6cdd8285c68b32  志愿者-社会工作者\n",
      "..                                ...        ...\n",
      "465  22c31efc43d053be0a68762cdedd8a27  志愿者-社会工作者\n",
      "466  a90384a1d152a1fce3881a660604dd6b  志愿者-社会工作者\n",
      "467  7a81740eec706a9bc7e786c778d9b8e2  志愿者-社会工作者\n",
      "468  71d2ef00fc0f03dc204ecd6208dce510  志愿者-社会工作者\n",
      "469  fd13167d5501eb51b4d63659831ece2f  志愿者-社会工作者\n",
      "\n",
      "[470 rows x 2 columns]\n",
      "                                   手机号       种类\n",
      "0     e433704a5213e977712c700eefd0b670  快递-餐饮配送\n",
      "1     a7c31ccec0c7af21cbd1d49f4035233a  快递-餐饮配送\n",
      "2     fe895b9ad06f2697ff93eeeb6cb7996d  快递-餐饮配送\n",
      "3     7f747afa608a7448660e74a94579faa9  快递-餐饮配送\n",
      "4     e365f6d137f672c905483f4042234bea  快递-餐饮配送\n",
      "...                                ...      ...\n",
      "1018  2b899bd5855752ec78b158419d935dd3  快递-餐饮配送\n",
      "1019  aca7a15ac098c701da27ca4efc80a9fd  快递-餐饮配送\n",
      "1020  b37d11b7ccff2345f7c298b64c89ac21  快递-餐饮配送\n",
      "1021  ef89b76dbaa881270e6841147f3e9207  快递-餐饮配送\n",
      "1022  ad0c8959f0c2417b2e235491307a1eec  快递-餐饮配送\n",
      "\n",
      "[1023 rows x 2 columns]\n",
      "                                  手机号    种类\n",
      "0    f17c96bdaa1a3a644ea9531b83a09238  房产中介\n",
      "1    9ec3ef66a0630e84a92accbee000598f  房产中介\n",
      "2    a9d7cd7e8ff88acff444d1cf3f6d269f  房产中介\n",
      "3    3cf9113214fcb65d50dd9544a8d13ee8  房产中介\n",
      "4    9dee5d7b95e7032011f4745b0c83060b  房产中介\n",
      "..                                ...   ...\n",
      "810  ab79a1948367473142b06b0cf28ae6ea  房产中介\n",
      "811  f72636b0f6986afb13d347a49c26fe6a  房产中介\n",
      "812  cc081f6484cc61de62e8d34ad1f76d64  房产中介\n",
      "813  39bdbae4cc6abcab0a7ef071cba5eee5  房产中介\n",
      "814  5b4fe5f5503ebd3899b0b3fec8515f18  房产中介\n",
      "\n",
      "[815 rows x 2 columns]\n",
      "                                  手机号        种类\n",
      "0    e645de86a747ef1bda187244891a9ae8  政府-非营利机构\n",
      "1    f1004e26dfb0ff4948b958a0ec735fef  政府-非营利机构\n",
      "2    a1d5160f1a0782ab0c3994f75ea7ea91  政府-非营利机构\n",
      "3    31a221188f908a92b5554ed7ecb5b532  政府-非营利机构\n",
      "4    ef1f60b93130492d0dc7554725fc3ec0  政府-非营利机构\n",
      "..                                ...       ...\n",
      "775  0f49076784ee1f19930763502e76fd38  政府-非营利机构\n",
      "776  c5e68357248742f46f3a69d523b396fa  政府-非营利机构\n",
      "777  27a773a373b239b8f4c79d031a41f294  政府-非营利机构\n",
      "778  3e0d71d3674c3a2f5dfa8e795954410e  政府-非营利机构\n",
      "779  1d1d1a063ae23bf477ed7a0cff69bc3f  政府-非营利机构\n",
      "\n",
      "[780 rows x 2 columns]\n",
      "                                  手机号    种类\n",
      "0    c0e55393361fc9f7af0232889e4166e6  教育培训\n",
      "1    52742381c0224967223ed99711b12ce3  教育培训\n",
      "2    b75f14cb5ad38292b8788437e67402af  教育培训\n",
      "3    e1c5d331c966b4c905f457b2ca79d9b9  教育培训\n",
      "4    12c8e00c6355ba7771e1c9217c535bfe  教育培训\n",
      "..                                ...   ...\n",
      "457  2b7f484d438aa606b87a8796a7e8513d  教育培训\n",
      "458  467263fdee610c4cb267d5c584ef09d6  教育培训\n",
      "459  f23914ffc23466799e9315e8540f5064  教育培训\n",
      "460  61ac488fc26e3ed09b288150b78b6d7f  教育培训\n",
      "461  d7f987ce7ee318dd4285797c6fff71f9  教育培训\n",
      "\n",
      "[462 rows x 2 columns]\n",
      "                                  手机号  种类\n",
      "0    0310c99058efcce0a27f1db33e0b4a5c  旅游\n",
      "1    da526d60ca030166c51a1ef61f50ba66  旅游\n",
      "2    1c2aae8d3d4d6676bb8ff038425004da  旅游\n",
      "3    bd422c5f8298eefc5aa5adeb95eadcd6  旅游\n",
      "4    7d0b08c064d30686b4941cdbf5b31f66  旅游\n",
      "..                                ...  ..\n",
      "581  54d434f1158061521ad1496478b51a0a  旅游\n",
      "582  fdd55be974479f26076f5394e2432594  旅游\n",
      "583  cc71613da777911a5414574df7cf01f4  旅游\n",
      "584  aa9516cd6771706c33dbf652d76bfe40  旅游\n",
      "585  25bf710692b4afb93a889cfcb2d1155a  旅游\n",
      "\n",
      "[586 rows x 2 columns]\n",
      "                                  手机号    种类\n",
      "0    ee34c4791bd0acf9c4c5fae5de7a8fe3  日结零工\n",
      "1    3f2a141808fbef859195265646dc084b  日结零工\n",
      "2    23231bc069c9a3147c5496232f6cc227  日结零工\n",
      "3    450e880f8548778dae57832138fd4a3d  日结零工\n",
      "4    b1ff4945e6107cb6232e0a398d4b5638  日结零工\n",
      "..                                ...   ...\n",
      "287  6a9b21fa82133934fd9e6b133c70017b  日结零工\n",
      "288  a30b58d8962b5df7744cba99343e6a2e  日结零工\n",
      "289  3e61f2f034dc80c0a24673f9a2f62eb5  日结零工\n",
      "290  4308cdaff9124a8866403505d4cb9d7a  日结零工\n",
      "291  faa7d3e15f15b71694967e650901aaa7  日结零工\n",
      "\n",
      "[292 rows x 2 columns]\n",
      "                                   手机号     种类\n",
      "0     8fa4fca670b00e426b8a07bf4a8c380e  普工-技工\n",
      "1     1bef7d80d181dd1deafd1881e8d0cb19  普工-技工\n",
      "2     f0cbc7ea1e7fe88adf9767cbeb53e9a8  普工-技工\n",
      "3     4fe69894693b5dd1356cbb3a5f184d00  普工-技工\n",
      "4     150fcb7d43c2283deaa8d8d318a5c342  普工-技工\n",
      "...                                ...    ...\n",
      "1002  29fdb41d1bf8e01c7f1374e8784d197e  普工-技工\n",
      "1003  3ab7e6b4fb0a77fd60d33488e0a90c55  普工-技工\n",
      "1004  45139b597a254bb9052b0bdbc5264a13  普工-技工\n",
      "1005  d4bb61e86aa3c0555a9bd20013d34669  普工-技工\n",
      "1006  60d9b83d76a41485e3899bad0ed69905  普工-技工\n",
      "\n",
      "[1007 rows x 2 columns]\n",
      "                                  手机号    种类\n",
      "0    8c5a6b95dd2f337e3d8f9b69cf5a28da  暑期零工\n",
      "1    09c2201ac6f5afbb924bf2f12996bdd1  暑期零工\n",
      "2    743ead09acfc3e2bc4bbaeecb223e263  暑期零工\n",
      "3    6b9c48538968e1a2f1145899f0f923d6  暑期零工\n",
      "4    f13c345c5f87fe3a580663d0a5c28a77  暑期零工\n",
      "..                                ...   ...\n",
      "896  67c36119aacf4b848ab148d51f2389b4  暑期零工\n",
      "897  891b60b4efff51344e81660c714c2a41  暑期零工\n",
      "898  81a10c0d325712a0afc77e6d309552dd  暑期零工\n",
      "899  d9eeaf4727886a068993ce19d9857a5d  暑期零工\n",
      "900  db700cfa8826466be90dd1005986a795  暑期零工\n",
      "\n",
      "[901 rows x 2 columns]\n",
      "                                  手机号        种类\n",
      "0    eec8dcc458f2ffb0376491f1ab6e14e2  服装-纺织-食品\n",
      "1    413390dbae6e5ef772c727efeecb51d3  服装-纺织-食品\n",
      "2    15b90675effbbc29cce66abdcb54d593  服装-纺织-食品\n",
      "3    2a61f28269fd86aa6153b73f85dc3033  服装-纺织-食品\n",
      "4    192796d60b8a3525a074a2bb9aab1212  服装-纺织-食品\n",
      "..                                ...       ...\n",
      "852  e9760755b541c63bdb79c9ad24a94de9  服装-纺织-食品\n",
      "853  c3b13ca6267d5c8a29f7219a9c015424  服装-纺织-食品\n",
      "854  3de1ce509df5f85fce1b1dd12e04c2ae  服装-纺织-食品\n",
      "855  5c184935e491769684596db229735cb2  服装-纺织-食品\n",
      "856  41c6ed7c7b7f5bdeb2db822b9206e141  服装-纺织-食品\n",
      "\n",
      "[857 rows x 2 columns]\n",
      "                                  手机号       种类\n",
      "0    bbf575c1f26d4bcd31d94f752691a36f  机械-仪器仪表\n",
      "1    94aa4fa4221030754050f96b58090650  机械-仪器仪表\n",
      "2    c22d54ddbb9f6103f0f1da5dd25c3a42  机械-仪器仪表\n",
      "3    904d17f6042b5b5ca127a75841b8700f  机械-仪器仪表\n",
      "4    26ebf5b3b372fc1da8f6679fef9e1feb  机械-仪器仪表\n",
      "..                                ...      ...\n",
      "903  0c29ec82f71547eeb47ee2b4ed99df28  机械-仪器仪表\n",
      "904  5d87d576f4ceb6b84708bf4009c4b15e  机械-仪器仪表\n",
      "905  d67d2bc5b59462cbe6e253ade64074b9  机械-仪器仪表\n",
      "906  982c78cf90ab8a8cc7b3be93988a616e  机械-仪器仪表\n",
      "907  dbd028f8a88b9dc7d7aad845faef4640  机械-仪器仪表\n",
      "\n",
      "[908 rows x 2 columns]\n",
      "                                  手机号       种类\n",
      "0    06c07dc6fbe0bfefc447ecbaaf14f2b4  汽车制造-服务\n",
      "1    f20d7dc6db521974abcf955bb52c4df0  汽车制造-服务\n",
      "2    5987f710f51cbd34f5e61ab7d4a29f95  汽车制造-服务\n",
      "3    738c692cc3b4b9b3ec23e2824efa09f9  汽车制造-服务\n",
      "4    466919a93e0451aba345c849e7008abf  汽车制造-服务\n",
      "..                                ...      ...\n",
      "319  b586eab399eabda9fed72321bd376aba  汽车制造-服务\n",
      "320  69d3f8ecef7069eda9ccab207c893dfb  汽车制造-服务\n",
      "321  29e674d06a09a2df58cefd94e9380496  汽车制造-服务\n",
      "322  4f6c402f206fb06fa2b58ad0d39c8b51  汽车制造-服务\n",
      "323  9fc07997e4b6f91458ca893b4aefddf1  汽车制造-服务\n",
      "\n",
      "[324 rows x 2 columns]\n",
      "                                  手机号  种类\n",
      "0    bd9baeda0076307df17b73ca5cd6f7fb  法律\n",
      "1    2339da0d5dfeb218453d0012caa460fd  法律\n",
      "2    9e3a4870c2800b93219315c31ea9834e  法律\n",
      "3    a41734d91df89aa84963b686a3958cb4  法律\n",
      "4    a408f9dceebb04d163ac4bb7c9eacdb6  法律\n",
      "..                                ...  ..\n",
      "396  6397fb66d8029684f1b59a8d76edf368  法律\n",
      "397  3447278cd678375917fcf93b9bbcb7c3  法律\n",
      "398  d8c17db7d59df60b51f0432f42938c96  法律\n",
      "399  655ae6acefd180a0f5a03515d085f2d8  法律\n",
      "400  90c35cb84577d8d078c2f43d388448f7  法律\n",
      "\n",
      "[401 rows x 2 columns]\n",
      "                                  手机号    种类\n",
      "0    efa5a3cb6044c757d91f9d9bfd0199c0  淘宝职位\n",
      "1    b8e0e160eaf95cb9321b4ac0303b297a  淘宝职位\n",
      "2    9808db31b73222a6908609de947d63c7  淘宝职位\n",
      "3    1313b3da323c92469330f4989d30c0af  淘宝职位\n",
      "4    b48743a38123784ccaa4d61fbb156469  淘宝职位\n",
      "..                                ...   ...\n",
      "896  2a2f63ee4394edb5e5cb9dc079c5c1d9  淘宝职位\n",
      "897  5546fffa0cc9b9034185c69b44949261  淘宝职位\n",
      "898  e410bffd17dd0de49e3032a562ede758  淘宝职位\n",
      "899  539396aab7418428dc651919a6d8ace7  淘宝职位\n",
      "900  18dcce8b3e0cf28fdc348599c026b599  淘宝职位\n",
      "\n",
      "[901 rows x 2 columns]\n",
      "                                  手机号    种类\n",
      "0    98220c982951b5c928c897f0b942d213  物业管理\n",
      "1    2dd031c07d288849d16ce69be04035b0  物业管理\n",
      "2    11bfe1ff09eed2e8b0b027f537139427  物业管理\n",
      "3    8187033b8c3f0f0984aadd2ce6138878  物业管理\n",
      "4    9335c4b388fce0d4fcdda1cae52fa593  物业管理\n",
      "..                                ...   ...\n",
      "163  338a772a671fd4077b8cb08df2ec2669  物业管理\n",
      "164  40b12bfc449b931ec580f5810bb04f5c  物业管理\n",
      "165  5a2c798349808038a82ae10bc767e40e  物业管理\n",
      "166  dab8836baf6d313cecb052e98a119566  物业管理\n",
      "167  fc32d0091b56de33fcb11feef2e711bd  物业管理\n",
      "\n",
      "[168 rows x 2 columns]\n",
      "                                  手机号     种类\n",
      "0    4b2345a3ce72969d67ccb00aa783581e  物流-仓储\n",
      "1    cc4f65c833c4cddabfab79b1bef64bd0  物流-仓储\n",
      "2    627cd08f761d64fa8fb7ba9d1f4713f7  物流-仓储\n",
      "3    d9a3c5da7cb01f9728f73ce7a2a70203  物流-仓储\n",
      "4    85261e71216675994ac9f69fbc7a45c3  物流-仓储\n",
      "..                                ...    ...\n",
      "629  18746f6768ece1a6e92064be48c8affc  物流-仓储\n",
      "630  883f550c1e43b0e5b5f22b40299f0c1d  物流-仓储\n",
      "631  2842fd9978d7fccc1c2c058a4451e6c6  物流-仓储\n",
      "632  7716d0e0917554fb8cf444d3faeaa56e  物流-仓储\n",
      "633  a357b56563f59f59f83a21d048aeb7a0  物流-仓储\n",
      "\n",
      "[634 rows x 2 columns]\n",
      "                                  手机号     种类\n",
      "0    614e38a667a687987bf1ec0f9633c620  环保-能源\n",
      "1    69e5adb9edfa3c40d9ee14258b917942  环保-能源\n",
      "2    69e763fb8a458acc9bb3bd4dbcf47e0c  环保-能源\n",
      "3    c7c058acbca0edc0476776fcdd1674be  环保-能源\n",
      "4    893433aa7c999a6c732402ae7457cf26  环保-能源\n",
      "..                                ...    ...\n",
      "177  43af3f521d443eb2886a487d4e9b7fab  环保-能源\n",
      "178  693c3129d1080769567712c63d2e253b  环保-能源\n",
      "179  911fa06838efd3fb39e7f31e5329332c  环保-能源\n",
      "180  3cd3901a157b2e25161ce36884b33035  环保-能源\n",
      "181  d67f1b4d0b52eee483b353fff47c2579  环保-能源\n",
      "\n",
      "[182 rows x 2 columns]\n",
      "                                  手机号       种类\n",
      "0    0ba87e7f040c4dbb46107ef33a33b604  生产管理-研发\n",
      "1    d0f66f1d4f2e0e2ef6a02a2d357e24a1  生产管理-研发\n",
      "2    6c53efbd4fdbc325beddf0bb5f0d50b4  生产管理-研发\n",
      "3    300efc6050329150fd328bab6e9b5839  生产管理-研发\n",
      "4    28fc33106520ffcb9645da0dd740c0f7  生产管理-研发\n",
      "..                                ...      ...\n",
      "97   33f78a779068bffc8bd704ff66d0fd57  生产管理-研发\n",
      "98   e6a913c41a014291f7131653eb640dea  生产管理-研发\n",
      "99   478afcc703983344213c9cc16eab80aa  生产管理-研发\n",
      "100  63da7c2c9073479738a418a8912a22a0  生产管理-研发\n",
      "101  323a45d5d6090353e03e24af73c2635b  生产管理-研发\n",
      "\n",
      "[102 rows x 2 columns]\n",
      "                                  手机号     种类\n",
      "0    0940ade8c19ea6ae6da184b5acaa2de9  电子-电气\n",
      "1    766b254caa6b41dc3b36138d77f258a1  电子-电气\n",
      "2    3c83332b321f9a8f3fe1a55f57085c3a  电子-电气\n",
      "3    350489e9afc87abd0ad1f1e70ce1f0ad  电子-电气\n",
      "4    55aa18f521e663bd887db0ec30042697  电子-电气\n",
      "..                                ...    ...\n",
      "753  010ab1cf7b30f9616d93f1c00b63ae12  电子-电气\n",
      "754  dd81dd0e1918f9439c1737c80f5abbdc  电子-电气\n",
      "755  fa75b025d6133d09266a6603c05f4105  电子-电气\n",
      "756  e401f2f5568039e8fdcea5aa6e13344f  电子-电气\n",
      "757  6f2080f8a308f3ca425dc0d6a50ee909  电子-电气\n",
      "\n",
      "[758 rows x 2 columns]\n",
      "                                 手机号    种类\n",
      "0   1286cf22f0c5edbc6174cefc2d6858ff  短期零工\n",
      "1   43ffd455980d651d90c993355ffbb1cd  短期零工\n",
      "2   23f26179c4f271c4302058b31044338c  短期零工\n",
      "3   36326eadf233ce0de1f46f701a4f2ca3  短期零工\n",
      "4   315f2396d9a0ac948d2b9176c6b83629  短期零工\n",
      "..                               ...   ...\n",
      "94  275e4021592294e8a045299fb2609c2a  短期零工\n",
      "95  b30e35130b04167c35bca59a818c9759  短期零工\n",
      "96  77ba16933d344f2ce5a5d21c978b01b5  短期零工\n",
      "97  aecbc04e3dda01ea1dbdf5971a3a106e  短期零工\n",
      "98  b5252a8c22e3bbdd8b7d5be20bc7cf5e  短期零工\n",
      "\n",
      "[99 rows x 2 columns]\n",
      "                                  手机号        种类\n",
      "0    d0fae3e7e9ad4d7462a1e9f9218080fc  编辑-出版-印刷\n",
      "1    e77ef941b556337d7c112f0a74325744  编辑-出版-印刷\n",
      "2    ef4b8c60d33268a3d7cdd05c4780b07a  编辑-出版-印刷\n",
      "3    f552427fbd803336a917a4ba7bed00f9  编辑-出版-印刷\n",
      "4    7d08c09228e6befb07ee4a8373a53dc8  编辑-出版-印刷\n",
      "..                                ...       ...\n",
      "854  1088fce89eb6e95f73c87532b54a382a  编辑-出版-印刷\n",
      "855  0970640951cf76e9c7db4dc0af35525a  编辑-出版-印刷\n",
      "856  5c065f20f425b3767d2f10f4c1d88b52  编辑-出版-印刷\n",
      "857  83cc68b15b0702314c8665d77de8e4d5  编辑-出版-印刷\n",
      "858  811604f187998f8185c413fa24371465  编辑-出版-印刷\n",
      "\n",
      "[859 rows x 2 columns]\n",
      "                                  手机号     种类\n",
      "0    92fec88b4d563dc1bef28bb880095766  美容-美发\n",
      "1    a4b417807fa0e1c47b18e5d41005880f  美容-美发\n",
      "2    a8a0395ecb49c162436b36a7df68507f  美容-美发\n",
      "3    eb93c7eb378a2d046fc9a48e6e71108c  美容-美发\n",
      "4    2000458b77ad25f5be6d7a998d142cb8  美容-美发\n",
      "..                                ...    ...\n",
      "310  d90c07c0a0d49bb6edda5cfa4ef647ac  美容-美发\n",
      "311  0b6595459219f7ec7be364335c1da0f4  美容-美发\n",
      "312  4915d994addd842b91b2e0621a26f049  美容-美发\n",
      "313  5c61a9fc40eb27dc7215797c12a80e4c  美容-美发\n",
      "314  a26ff717eb7ef9f7abb3e8faf1ca811c  美容-美发\n",
      "\n",
      "[315 rows x 2 columns]\n",
      "                                  手机号        种类\n",
      "0    ef4603cbcdc9bf6c0aa7fab38f1b6045  美术-设计-创意\n",
      "1    41b706e48c3868c17942da31496bd800  美术-设计-创意\n",
      "2    569b58eb4c851792024a75548cf50ba6  美术-设计-创意\n",
      "3    1f553ba40b75135324d9f8d889b6618c  美术-设计-创意\n",
      "4    4598d0f878f71a9605cdc5b2648fd9ee  美术-设计-创意\n",
      "..                                ...       ...\n",
      "927  bd891e52033d4769d522c4583a987a3d  美术-设计-创意\n",
      "928  f2ed03a33999159ffa8cbebf797d6b7d  美术-设计-创意\n",
      "929  81024ad7e27e6e7f0b3fab20266c2840  美术-设计-创意\n",
      "930  1e5028572e835a5acdbaae35d9d2d56f  美术-设计-创意\n",
      "931  0bbc96ac982ed471ae0ebbef0e63420d  美术-设计-创意\n",
      "\n",
      "[932 rows x 2 columns]\n",
      "                                  手机号  种类\n",
      "0    6442a4cd70fdc110d29422558c34b278  翻译\n",
      "1    8474ba12c56653f08f0913550eef5c51  翻译\n",
      "2    84105137a7d6f986b582d8d36b262e3a  翻译\n",
      "3    1467a5731c808450f5a9de71ce5b0ac7  翻译\n",
      "4    66af91e32d6bdc07c2a509544e97603b  翻译\n",
      "..                                ...  ..\n",
      "981  9e47de1639b2c6d82056b70a98eeb848  翻译\n",
      "982  c19625bb95a9afb973bddfb89286eb80  翻译\n",
      "983  3a9ae38d671efb93f9fa323d3626c8e7  翻译\n",
      "984  6a293b0ec83e49afbc0ae6ae10edaa99  翻译\n",
      "985  6d2eefd578937cffb648f4521964f0a2  翻译\n",
      "\n",
      "[986 rows x 2 columns]\n",
      "                                  手机号    种类\n",
      "0    0522ebbc337b4126b1129679e681037e  职业培训\n",
      "1    2a74adeaf9aa452c59cdc93bb87c903d  职业培训\n",
      "2    046a02fc263f5fd762cb18caf94394c0  职业培训\n",
      "3    8b3ad76803a09b7ba3414d45ea5d2943  职业培训\n",
      "4    1a621f306d8e1fa99e46b9f3bab792e7  职业培训\n",
      "..                                ...   ...\n",
      "918  68307e7821d09abf100ec97109cbdbee  职业培训\n",
      "919  d20f934839fbd7c000f7579b4b430f50  职业培训\n",
      "920  955c9cdd6fb1f3d36580a7806f8f5237  职业培训\n",
      "921  a74b18200a82439afac10cce468e8037  职业培训\n",
      "922  a558c365505f9b96cacb6ac93c902cae  职业培训\n",
      "\n",
      "[923 rows x 2 columns]\n",
      "                                  手机号          种类\n",
      "0    55c2a17f38af9ad901d2bbc7a0665430  计算机-互联网-通信\n",
      "1    31a37719e8270bb08e6affbe458fb203  计算机-互联网-通信\n",
      "2    e4e3fc55ac8ded5545388169fd18f998  计算机-互联网-通信\n",
      "3    53999e7de75a9832ccb6d4388ed31223  计算机-互联网-通信\n",
      "4    041e9e9d9c9f5f3565c09bdc71ee5bac  计算机-互联网-通信\n",
      "..                                ...         ...\n",
      "669  6e9d95834689547b0095af20f28e428d  计算机-互联网-通信\n",
      "670  43907f8dd4f6c1db99becb7d7f2e3cf8  计算机-互联网-通信\n",
      "671  88ac7cd3dec9ace4882bc2b5ef1ae103  计算机-互联网-通信\n",
      "672  297f287d02eb520fbd3c2203360f39fa  计算机-互联网-通信\n",
      "673  8acd6e33328fc02518233ffaa81aac44  计算机-互联网-通信\n",
      "\n",
      "[674 rows x 2 columns]\n",
      "                                  手机号        种类\n",
      "0    795a9289d7296d3dbfaf939562e694c3  财务-审计-统计\n",
      "1    d47266426f5366e3ac80fdd256670de6  财务-审计-统计\n",
      "2    aa3051730bb9e72eabd9e3d350c15f84  财务-审计-统计\n",
      "3    c026a8d65f99bde95abb249af2b2fdd4  财务-审计-统计\n",
      "4    5ecf16964d88f70386c1eb5d7d34e9fd  财务-审计-统计\n",
      "..                                ...       ...\n",
      "282  bf7882b496c1e52820dd7cb19c2c9ddc  财务-审计-统计\n",
      "283  a62827173b750b21f7a02605414c0c1d  财务-审计-统计\n",
      "284  93fa4e7d2ad2c32dcd45eb611ac9dc6a  财务-审计-统计\n",
      "285  063fa7c0b6333a613231302d40c4144a  财务-审计-统计\n",
      "286  3f91c758a9d2fb89129b3fd9a622e898  财务-审计-统计\n",
      "\n",
      "[287 rows x 2 columns]\n",
      "                                  手机号     种类\n",
      "0    d93235018d7db67acb29e5c075025dc4  质控-安防\n",
      "1    77709b782757219d80da8c9466a6d6ff  质控-安防\n",
      "2    bd7494e9cdd047f42e72ec26dcb11865  质控-安防\n",
      "3    9857d1b72be88d109fc4c2f5b2233835  质控-安防\n",
      "4    a0729e763f0da60e10352c407bb83938  质控-安防\n",
      "..                                ...    ...\n",
      "479  2104b918b0898caace0705ff2e7fee89  质控-安防\n",
      "480  6981bb7a0d359aad91bb9e5bd857b59b  质控-安防\n",
      "481  c3de5054f4dccab9e26c729189af6bdd  质控-安防\n",
      "482  d796af38cd00c9f2212b0734a79472be  质控-安防\n",
      "483  760aec602b8ec11e58ed5a5a558809c4  质控-安防\n",
      "\n",
      "[484 rows x 2 columns]\n",
      "                                  手机号     种类\n",
      "0    64121a0de3ccf23189494e81e3adc75d  贸易-采购\n",
      "1    40d70b39dddd037f8364350e8750a4f4  贸易-采购\n",
      "2    8d127a80101f8e875a069528b903170d  贸易-采购\n",
      "3    acf6f71528cb09830cffe7a62e84de69  贸易-采购\n",
      "4    9fd083c3429f5165389166f66f25b55f  贸易-采购\n",
      "..                                ...    ...\n",
      "825  0406604bfa16561a4146e7634fec406c  贸易-采购\n",
      "826  6586025a40fbd275e5c065d41a48e05b  贸易-采购\n",
      "827  c97a5c85bbc49245de3df2670c0507b9  贸易-采购\n",
      "828  7c8eeb4bd9ad97185514bc69c435b792  贸易-采购\n",
      "829  ae402559672d582179b09f5d0da3f5c2  贸易-采购\n",
      "\n",
      "[830 rows x 2 columns]\n",
      "                                  手机号        种类\n",
      "0    7d13e05fc296b90592bfdd9a9f94bd56  超市-百货-零售\n",
      "1    83df6b9e78eae0be2dce82d4b4196292  超市-百货-零售\n",
      "2    fd0e5b8fb71c49f624ad1c9539b05776  超市-百货-零售\n",
      "3    00427f283ff2a1201f51fd207eeca670  超市-百货-零售\n",
      "4    186c1d14786c0ceb0942f7cca0ddeae4  超市-百货-零售\n",
      "..                                ...       ...\n",
      "285  fd78dc48a9f55c5b7f0d3e12b5c3b46e  超市-百货-零售\n",
      "286  15ecea5b874356980f63304edbe587d3  超市-百货-零售\n",
      "287  fd919e13347b45c1ad45db65db78f9c6  超市-百货-零售\n",
      "288  f3be7671370944108b85850ea12e7e11  超市-百货-零售\n",
      "289  107352accb0d6d9acbc2f2e9812e815a  超市-百货-零售\n",
      "\n",
      "[290 rows x 2 columns]\n",
      "                                  手机号    种类\n",
      "0    c10304ba5e13f140c15d9ca2356abec2  运动健身\n",
      "1    d9226f16cfa47de489b1ceb89577d132  运动健身\n",
      "2    2b4f42570afa5c309ae90b3d1babdbc3  运动健身\n",
      "3    19217cd8626882e809026705d9e0518f  运动健身\n",
      "4    dfae5bcf8e9c80547ca8935bdb36885e  运动健身\n",
      "..                                ...   ...\n",
      "273  b2425458ed3bd487c5adde2788bb14be  运动健身\n",
      "274  9c26cc78dc053544f360b652091c7642  运动健身\n",
      "275  4f0ac92c53ca2eb8f6f401fce6a4c88e  运动健身\n",
      "276  1e1d662a68658ebf34b78b88e9d7383c  运动健身\n",
      "277  07306fe0c88f4e08a27cb11053c7fee0  运动健身\n",
      "\n",
      "[278 rows x 2 columns]\n",
      "                                  手机号  种类\n",
      "0    2c86d1a593615c6a8f66325d0354f515  酒店\n",
      "1    204164915952a994c84457dfa40be16f  酒店\n",
      "2    81c0b9c550bade46fadf950c70f38edd  酒店\n",
      "3    980e63f4a5523dc0914089659c590e34  酒店\n",
      "4    3da1480bd6c6f1d68719750180f9f9b8  酒店\n",
      "..                                ...  ..\n",
      "326  7b48fc2ab4d3c08912a91b5d2ab17945  酒店\n",
      "327  fcfd0ed7bef9c1cf47beb9e59ff38b3b  酒店\n",
      "328  8e6d7e9cd6fd6fc3f702afdc068a7ab2  酒店\n",
      "329  006681b4f2457b490297976a6a8f004c  酒店\n",
      "330  632bc8dc3fd7a0c0c300d1edb068114c  酒店\n",
      "\n",
      "[331 rows x 2 columns]\n",
      "                                  手机号           种类\n",
      "0    3fc15e129aac59d9a762e32de252d0bb  金融-银行-证券-投资\n",
      "1    ac9a7166828370816ef4217887732e58  金融-银行-证券-投资\n",
      "2    12956d3c75ea3767994d0a329a4b4859  金融-银行-证券-投资\n",
      "3    e1e27e27c8e293906ccf1913c35eacf3  金融-银行-证券-投资\n",
      "4    d2396e3ce267b8106c23640efa04d565  金融-银行-证券-投资\n",
      "..                                ...          ...\n",
      "277  1123e78706011364c4798b90fe9deb76  金融-银行-证券-投资\n",
      "278  284fefefd72ae21e0afe6287cf1e4981  金融-银行-证券-投资\n",
      "279  3ed5b5be09b52af2082cdc42f92b3a98  金融-银行-证券-投资\n",
      "280  56814bbe971542d60aba7a0a32feb0f0  金融-银行-证券-投资\n",
      "281  1e2c5e6e386a24fe9e3a3a76b4ac4fb6  金融-银行-证券-投资\n",
      "\n",
      "[282 rows x 2 columns]\n",
      "                                  手机号    种类\n",
      "0    930b0c9c060c2a28eb01804d59a2d072  销售11\n",
      "1    0605b872ca6fccdd40491203f10b3639  销售11\n",
      "2    b3b974ff8934ab9ca6dc64d31151c2cc  销售11\n",
      "3    64b8edd6b12fc36137178fe70be0c4b1  销售11\n",
      "4    dd0e4216928d5b6913603faf54b32103  销售11\n",
      "..                                ...   ...\n",
      "381  505550f1342dd6773690c3eaffdcc4b9  销售11\n",
      "382  87e0204e6a27e89970c727c03bdf3923  销售11\n",
      "383  367f8c391882ee6e7bb2ea9131087d6e  销售11\n",
      "384  f974d394d9382eaf3d8ed9e5a4abe4df  销售11\n",
      "385  81b841f8aff8824643c3e98568655b50  销售11\n",
      "\n",
      "[386 rows x 2 columns]\n",
      "                                  手机号  种类\n",
      "0    dcd78474425bd5d587dea4c089f7540c  餐饮\n",
      "1    ef19f7e01c2c85cb35a3efcd0193da30  餐饮\n",
      "2    67e41721f2d644d73a66652815fee178  餐饮\n",
      "3    72dea83ccbfb2b8560f38c2b9ddcf8cf  餐饮\n",
      "4    090e6578f7c5f353741b09328e24f141  餐饮\n",
      "..                                ...  ..\n",
      "295  e39cb242ca8cb1b00cf18b54e353f398  餐饮\n",
      "296  368ecb7bc144ee48ba85b9f1d11effd5  餐饮\n",
      "297  a05ad9b98b302511853cd12ab5a25af0  餐饮\n",
      "298  f58fa5fba46d4c3753d7c10d4b516d8f  餐饮\n",
      "299  b7a2a0b2ed47f62195c646a1235a62dc  餐饮\n",
      "\n",
      "[300 rows x 2 columns]\n",
      "                                  手机号    种类\n",
      "0    e965d3aecd90eb108e6f81fd62b35d3f  餐饮零工\n",
      "1    40482e87d468d48d7be3c13e7e679413  餐饮零工\n",
      "2    4c10e358c2fd732433e7ff39bddd5cd8  餐饮零工\n",
      "3    80cf3be37a6ae4ec9a34753ed162c4b8  餐饮零工\n",
      "4    bc35ebf17f6d5159e764f7179943a6b4  餐饮零工\n",
      "..                                ...   ...\n",
      "383  6688b336b7952a3426035eafe3f6588e  餐饮零工\n",
      "384  ff5faacf8f22eb5d2dd0c8044aabd1bd  餐饮零工\n",
      "385  5a5c52e43a2de96c3b5a483c4863f4a2  餐饮零工\n",
      "386  ea5a184f7a788d5f28c82140769a70b1  餐饮零工\n",
      "387  6e56475d200abad88b416fa69e6fd3b7  餐饮零工\n",
      "\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[388 rows x 2 columns]\n",
      "                                  手机号    种类\n",
      "0    2ee9e7b5c4a56e6ed65f2b48aed7fdd8  高级管理\n",
      "1    d6239b7d3ebfd719488187fbcc183892  高级管理\n",
      "2    2f7443c69bcd55caa2b77089b3c91bad  高级管理\n",
      "3    01cd272378c2891fb43fc64c11f348d6  高级管理\n",
      "4    e28b5363b9b7d1fa7a1b5581a2dc67ec  高级管理\n",
      "..                                ...   ...\n",
      "388  a65aefdaeefec36a1050388ca7898d71  高级管理\n",
      "389  a431c672c62d3e3abbf0d438a1854129  高级管理\n",
      "390  d7d2f00bd2102105085a36dd3383e7e0  高级管理\n",
      "391  3847ac14c994d8f3d3c00d7ef22bcc62  高级管理\n",
      "392  b6323123ae73a9ada0fd62f7d72dba01  高级管理\n",
      "\n",
      "[393 rows x 2 columns]\n"
     ]
    }
   ],
   "source": [
    "for key in customer_pd_dict.keys():\n",
    "    print(customer_pd_dict[key])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>tel</th>\n",
       "      <th>catagory</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>94a20c908ea398cefba903e2d6598ea2</td>\n",
       "      <td>人事-行政-后勤</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>5abd29bae58e80cc2513b9aa0f3dd598</td>\n",
       "      <td>人事-行政-后勤</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>90875eb5b8fc1c84cf9a395f642ac092</td>\n",
       "      <td>人事-行政-后勤</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>05f8673bd351bdb9bf3f503013784da8</td>\n",
       "      <td>人事-行政-后勤</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>f4e507f349ac8455d8426db77c377636</td>\n",
       "      <td>人事-行政-后勤</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                tel  catagory\n",
       "0  94a20c908ea398cefba903e2d6598ea2  人事-行政-后勤\n",
       "1  5abd29bae58e80cc2513b9aa0f3dd598  人事-行政-后勤\n",
       "2  90875eb5b8fc1c84cf9a395f642ac092  人事-行政-后勤\n",
       "3  05f8673bd351bdb9bf3f503013784da8  人事-行政-后勤\n",
       "4  f4e507f349ac8455d8426db77c377636  人事-行政-后勤"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_customer.columns = [\"tel\",\"catagory\"]\n",
    "df_customer.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 建立catagory 到category _id的映射\n",
    "#读取category1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>content</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>人事-行政-后勤</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>保健按摩</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>保险</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>其他职位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>农-林-牧-渔业</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   id   content\n",
       "0   1  人事-行政-后勤\n",
       "1   2      保健按摩\n",
       "2   3        保险\n",
       "3   4      其他职位\n",
       "4   5  农-林-牧-渔业"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_catagory = pd.read_sql(\n",
    "    \"select id ,content from catagory\",\n",
    "    conn1\n",
    ")\n",
    "df_catagory.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>content</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>人事-行政-后勤</th>\n",
       "      <td>1</td>\n",
       "      <td>人事-行政-后勤</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>保健按摩</th>\n",
       "      <td>2</td>\n",
       "      <td>保健按摩</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>保险</th>\n",
       "      <td>3</td>\n",
       "      <td>保险</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>其他职位</th>\n",
       "      <td>4</td>\n",
       "      <td>其他职位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>农-林-牧-渔业</th>\n",
       "      <td>5</td>\n",
       "      <td>农-林-牧-渔业</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "          id   content\n",
       "人事-行政-后勤   1  人事-行政-后勤\n",
       "保健按摩       2      保健按摩\n",
       "保险         3        保险\n",
       "其他职位       4      其他职位\n",
       "农-林-牧-渔业   5  农-林-牧-渔业"
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_catagory.index = df_catagory[\"content\"].values\n",
    "df_catagory.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'id': {'人事-行政-后勤': 1,\n",
       "  '保健按摩': 2,\n",
       "  '保险': 3,\n",
       "  '其他职位': 4,\n",
       "  '农-林-牧-渔业': 5,\n",
       "  '制药-生物工程': 6,\n",
       "  '化工': 7,\n",
       "  '医院-医疗-护理': 8,\n",
       "  '司机-交通服务': 9,\n",
       "  '商超零工': 10,\n",
       "  '实习生-培训生-储备干部': 11,\n",
       "  '客服': 12,\n",
       "  '家政保洁-安保': 13,\n",
       "  '工厂零工': 14,\n",
       "  '市场-媒介-公关': 15,\n",
       "  '广告-会展-咨询': 16,\n",
       "  '建筑': 17,\n",
       "  '影视-娱乐-休闲': 18,\n",
       "  '志愿者-社会工作者': 19,\n",
       "  '快递-餐饮配送': 20,\n",
       "  '房产中介': 21,\n",
       "  '政府-非营利机构': 22,\n",
       "  '教育培训': 23,\n",
       "  '旅游': 24,\n",
       "  '日结零工': 25,\n",
       "  '普工-技工': 26,\n",
       "  '暑期零工': 27,\n",
       "  '服装-纺织-食品': 28,\n",
       "  '机械-仪器仪表': 29,\n",
       "  '汽车制造-服务': 30,\n",
       "  '法律': 31,\n",
       "  '淘宝职位': 32,\n",
       "  '物业管理': 33,\n",
       "  '物流-仓储': 34,\n",
       "  '环保-能源': 35,\n",
       "  '生产管理-研发': 36,\n",
       "  '电子-电气': 37,\n",
       "  '短期零工': 38,\n",
       "  '编辑-出版-印刷': 39,\n",
       "  '美容-美发': 40,\n",
       "  '美术-设计-创意': 41,\n",
       "  '翻译': 42,\n",
       "  '职业培训': 43,\n",
       "  '计算机-互联网-通信': 44,\n",
       "  '财务-审计-统计': 45,\n",
       "  '质控-安防': 46,\n",
       "  '贸易-采购': 47,\n",
       "  '超市-百货-零售': 48,\n",
       "  '运动健身': 49,\n",
       "  '酒店': 50,\n",
       "  '金融-银行-证券-投资': 51,\n",
       "  '销售11': 52,\n",
       "  '餐饮': 53,\n",
       "  '餐饮零工': 54,\n",
       "  '高级管理': 55},\n",
       " 'content': {'人事-行政-后勤': '人事-行政-后勤',\n",
       "  '保健按摩': '保健按摩',\n",
       "  '保险': '保险',\n",
       "  '其他职位': '其他职位',\n",
       "  '农-林-牧-渔业': '农-林-牧-渔业',\n",
       "  '制药-生物工程': '制药-生物工程',\n",
       "  '化工': '化工',\n",
       "  '医院-医疗-护理': '医院-医疗-护理',\n",
       "  '司机-交通服务': '司机-交通服务',\n",
       "  '商超零工': '商超零工',\n",
       "  '实习生-培训生-储备干部': '实习生-培训生-储备干部',\n",
       "  '客服': '客服',\n",
       "  '家政保洁-安保': '家政保洁-安保',\n",
       "  '工厂零工': '工厂零工',\n",
       "  '市场-媒介-公关': '市场-媒介-公关',\n",
       "  '广告-会展-咨询': '广告-会展-咨询',\n",
       "  '建筑': '建筑',\n",
       "  '影视-娱乐-休闲': '影视-娱乐-休闲',\n",
       "  '志愿者-社会工作者': '志愿者-社会工作者',\n",
       "  '快递-餐饮配送': '快递-餐饮配送',\n",
       "  '房产中介': '房产中介',\n",
       "  '政府-非营利机构': '政府-非营利机构',\n",
       "  '教育培训': '教育培训',\n",
       "  '旅游': '旅游',\n",
       "  '日结零工': '日结零工',\n",
       "  '普工-技工': '普工-技工',\n",
       "  '暑期零工': '暑期零工',\n",
       "  '服装-纺织-食品': '服装-纺织-食品',\n",
       "  '机械-仪器仪表': '机械-仪器仪表',\n",
       "  '汽车制造-服务': '汽车制造-服务',\n",
       "  '法律': '法律',\n",
       "  '淘宝职位': '淘宝职位',\n",
       "  '物业管理': '物业管理',\n",
       "  '物流-仓储': '物流-仓储',\n",
       "  '环保-能源': '环保-能源',\n",
       "  '生产管理-研发': '生产管理-研发',\n",
       "  '电子-电气': '电子-电气',\n",
       "  '短期零工': '短期零工',\n",
       "  '编辑-出版-印刷': '编辑-出版-印刷',\n",
       "  '美容-美发': '美容-美发',\n",
       "  '美术-设计-创意': '美术-设计-创意',\n",
       "  '翻译': '翻译',\n",
       "  '职业培训': '职业培训',\n",
       "  '计算机-互联网-通信': '计算机-互联网-通信',\n",
       "  '财务-审计-统计': '财务-审计-统计',\n",
       "  '质控-安防': '质控-安防',\n",
       "  '贸易-采购': '贸易-采购',\n",
       "  '超市-百货-零售': '超市-百货-零售',\n",
       "  '运动健身': '运动健身',\n",
       "  '酒店': '酒店',\n",
       "  '金融-银行-证券-投资': '金融-银行-证券-投资',\n",
       "  '销售11': '销售11',\n",
       "  '餐饮': '餐饮',\n",
       "  '餐饮零工': '餐饮零工',\n",
       "  '高级管理': '高级管理'}}"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_catagory.to_dict()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'人事-行政-后勤': 1,\n",
       " '保健按摩': 2,\n",
       " '保险': 3,\n",
       " '其他职位': 4,\n",
       " '农-林-牧-渔业': 5,\n",
       " '制药-生物工程': 6,\n",
       " '化工': 7,\n",
       " '医院-医疗-护理': 8,\n",
       " '司机-交通服务': 9,\n",
       " '商超零工': 10,\n",
       " '实习生-培训生-储备干部': 11,\n",
       " '客服': 12,\n",
       " '家政保洁-安保': 13,\n",
       " '工厂零工': 14,\n",
       " '市场-媒介-公关': 15,\n",
       " '广告-会展-咨询': 16,\n",
       " '建筑': 17,\n",
       " '影视-娱乐-休闲': 18,\n",
       " '志愿者-社会工作者': 19,\n",
       " '快递-餐饮配送': 20,\n",
       " '房产中介': 21,\n",
       " '政府-非营利机构': 22,\n",
       " '教育培训': 23,\n",
       " '旅游': 24,\n",
       " '日结零工': 25,\n",
       " '普工-技工': 26,\n",
       " '暑期零工': 27,\n",
       " '服装-纺织-食品': 28,\n",
       " '机械-仪器仪表': 29,\n",
       " '汽车制造-服务': 30,\n",
       " '法律': 31,\n",
       " '淘宝职位': 32,\n",
       " '物业管理': 33,\n",
       " '物流-仓储': 34,\n",
       " '环保-能源': 35,\n",
       " '生产管理-研发': 36,\n",
       " '电子-电气': 37,\n",
       " '短期零工': 38,\n",
       " '编辑-出版-印刷': 39,\n",
       " '美容-美发': 40,\n",
       " '美术-设计-创意': 41,\n",
       " '翻译': 42,\n",
       " '职业培训': 43,\n",
       " '计算机-互联网-通信': 44,\n",
       " '财务-审计-统计': 45,\n",
       " '质控-安防': 46,\n",
       " '贸易-采购': 47,\n",
       " '超市-百货-零售': 48,\n",
       " '运动健身': 49,\n",
       " '酒店': 50,\n",
       " '金融-银行-证券-投资': 51,\n",
       " '销售11': 52,\n",
       " '餐饮': 53,\n",
       " '餐饮零工': 54,\n",
       " '高级管理': 55}"
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "catagory_content_to_id_dict = df_catagory.to_dict()[\"id\"]\n",
    "catagory_content_to_id_dict"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>tel</th>\n",
       "      <th>catagory</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>94a20c908ea398cefba903e2d6598ea2</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>5abd29bae58e80cc2513b9aa0f3dd598</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>90875eb5b8fc1c84cf9a395f642ac092</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>05f8673bd351bdb9bf3f503013784da8</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>f4e507f349ac8455d8426db77c377636</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                tel  catagory\n",
       "0  94a20c908ea398cefba903e2d6598ea2         1\n",
       "1  5abd29bae58e80cc2513b9aa0f3dd598         1\n",
       "2  90875eb5b8fc1c84cf9a395f642ac092         1\n",
       "3  05f8673bd351bdb9bf3f503013784da8         1\n",
       "4  f4e507f349ac8455d8426db77c377636         1"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_customer[\"catagory\"] = df_customer[\"catagory\"].apply(\n",
    "    lambda catagory : catagory_content_to_id_dict[catagory]\n",
    ")\n",
    "df_customer.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>tel</th>\n",
       "      <th>catagory_id</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>94a20c908ea398cefba903e2d6598ea2</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>5abd29bae58e80cc2513b9aa0f3dd598</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>90875eb5b8fc1c84cf9a395f642ac092</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>05f8673bd351bdb9bf3f503013784da8</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>f4e507f349ac8455d8426db77c377636</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                tel  catagory_id\n",
       "0  94a20c908ea398cefba903e2d6598ea2            1\n",
       "1  5abd29bae58e80cc2513b9aa0f3dd598            1\n",
       "2  90875eb5b8fc1c84cf9a395f642ac092            1\n",
       "3  05f8673bd351bdb9bf3f503013784da8            1\n",
       "4  f4e507f349ac8455d8426db77c377636            1"
      ]
     },
     "execution_count": 34,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_customer.columns = [\"tel\",\"catagory_id\"]\n",
    "df_customer.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {},
   "outputs": [],
   "source": [
    "df_customer.to_sql(\n",
    "    \"customer\",\n",
    "    conn2,\n",
    "    index = False,\n",
    "    if_exists = \"append\"\n",
    ")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 沟通结果"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'2020-06-01':                                   手机号 销售姓名   沟通结果\n",
       " 0    04875e81bd8363d57a45023dfe0f6fad   刘洋   继续跟单\n",
       " 1    664ce871652fc5000537372196d303e1   刘洋  非意向用户\n",
       " 2    c10304ba5e13f140c15d9ca2356abec2   刘洋  非意向用户\n",
       " 3    5ba2bc25041f5a246e8fcbd070afb47d   刘洋   继续跟单\n",
       " 4    fa5dfbe3e3b7bdb1fefe8c2498204d49   刘洋  非意向用户\n",
       " ..                                ...  ...    ...\n",
       " 745  39e0be8a848bca19a02a4b1a85352f8b   王超  非意向用户\n",
       " 746  a408f9dceebb04d163ac4bb7c9eacdb6   王超  非意向用户\n",
       " 747  780b1f34a53624c661b2c61c7df05518   王超  非意向用户\n",
       " 748  71d80a33c488af6e648d6e1024604f44   王超   继续跟单\n",
       " 749  92982c249290e9cc645f36827b03d921   王超  非意向用户\n",
       " \n",
       " [750 rows x 3 columns],\n",
       " '2020-06-02':                                   手机号 销售姓名    沟通结果\n",
       " 0    6922d3d95dc6323d579ef50be8029f2b   刘洋    继续跟单\n",
       " 1    2322fa52eef725b00d93cc3dff017281   刘洋   非意向用户\n",
       " 2    433f2444afe1bb4fdc1a755126807a05   刘洋    继续跟单\n",
       " 3    30c0671904502ddc75fe4cabb32b896f   刘洋   非意向用户\n",
       " 4    4576169057a7a6d1072613fac375e2be   刘洋   非意向用户\n",
       " ..                                ...  ...     ...\n",
       " 745  06641c12d07449f5b7a6e6c721a52bb4   王超   非意向用户\n",
       " 746  6bb83c22c719d5cfc4b3a4a00560ae3f   王超   非意向用户\n",
       " 747  5e4662bdfc838783218c970fc04aad02   王超    继续跟单\n",
       " 748  7ccbe3ff3904344d13bb3e5d1c300a4b   王超  直接签单成功\n",
       " 749  a66c81a565b4f3b1bf034b41ef0e822e   王超    继续跟单\n",
       " \n",
       " [750 rows x 3 columns],\n",
       " '2020-06-03':                                   手机号 销售姓名    沟通结果\n",
       " 0    1b2d442500ce004d55afaf3b03bb3730   刘洋    继续跟单\n",
       " 1    08089b0102c1abddcca287b7e7580d02   刘洋    继续跟单\n",
       " 2    0d2fe954592e9abce9b331093363a298   刘洋   非意向用户\n",
       " 3    a5031c32195742fc4deb705b376fd444   刘洋    继续跟单\n",
       " 4    fd38a5ace40874acff1685cab2c713c1   刘洋   非意向用户\n",
       " ..                                ...  ...     ...\n",
       " 977  71fcd9ec26e3cab049667d7814e92f3c   王超   非意向用户\n",
       " 978  7497edf2757859b6760f6355b8c3ec71   王超    跟单失败\n",
       " 979  33608813c2f0b8019e18ae134e42d0ad   王超    继续跟单\n",
       " 980  3675609d48820b6f5398ec33202d9df0   王超  直接签单成功\n",
       " 981  7a8f5682910e3a914784a4e13aeb4e12   王超    跟单失败\n",
       " \n",
       " [982 rows x 3 columns],\n",
       " '2020-06-04':                                    手机号 销售姓名   沟通结果\n",
       " 0     1f03ebfecad2b6da5077253bcdd697a6   刘洋  非意向用户\n",
       " 1     4b2d0cae2c9ab60b04feebc540c04c23   刘洋   继续跟单\n",
       " 2     d870df84bbf70d167422dd8743bf8fbd   刘洋   继续跟单\n",
       " 3     40d88f346da4c9f41dbed31bbc1215a7   刘洋  非意向用户\n",
       " 4     6adbeff6fe7fa35e895d21df7d5d5a07   刘洋   跟单失败\n",
       " ...                                ...  ...    ...\n",
       " 1069  77a71c6c289b4b2e22d78fa3f0c57382   王超   继续跟单\n",
       " 1070  02c7456aaea4cd42129161bac266337a   王超  非意向用户\n",
       " 1071  c9da353d6e51a7f9eaf1ba8c0baa5892   王超   继续跟单\n",
       " 1072  e37140b5e4c0184e1b3eb342c7db770c   王超   继续跟单\n",
       " 1073  acda24880661856c4813c22e4ef454f0   王超  非意向用户\n",
       " \n",
       " [1074 rows x 3 columns],\n",
       " '2020-06-05':                                    手机号 销售姓名   沟通结果\n",
       " 0     fdda3f3c74c14710945699370480a7d1   刘洋   继续跟单\n",
       " 1     c22dc10e6cf523efd99dee81072ebb6f   刘洋   继续跟单\n",
       " 2     3582ca750a9aa99bb8a39ced939e21d6   刘洋  非意向用户\n",
       " 3     035d834b9909ba7371b0fb7e49e8c9c8   刘洋   继续跟单\n",
       " 4     2aff23ad9b0823cbccd0add34755b6a3   刘洋  非意向用户\n",
       " ...                                ...  ...    ...\n",
       " 1056  e19cb6ba29cbff22da101f555f8424ca   王超  非意向用户\n",
       " 1057  8d466d0fdb57c48d1d67eae058a9e7d5   王超   继续跟单\n",
       " 1058  376936d3fbc8b46a74ecd1d3dfeb12c9   王超  非意向用户\n",
       " 1059  47aeb04467b8101beee4059af1171c94   王超  非意向用户\n",
       " 1060  9250bf93bfc6964c086095c488b6f113   王超   继续跟单\n",
       " \n",
       " [1061 rows x 3 columns],\n",
       " '2020-06-06':                                    手机号 销售姓名   沟通结果\n",
       " 0     5f2f159652e80d8f12d136619aed8806   刘洋   继续跟单\n",
       " 1     9ee3ffcef1216d42c539ed66ea117ac3   刘洋   跟单失败\n",
       " 2     55dea521ece0b319b3b516b1598d28a3   刘洋   跟单失败\n",
       " 3     d3ef32f4c00e8b5a820788a07132702f   刘洋   继续跟单\n",
       " 4     cde816c9aa98a96b0333cb1c96fae0f6   刘洋   继续跟单\n",
       " ...                                ...  ...    ...\n",
       " 1061  1292083aa52923cd10033c89dfa0e503   王超  非意向用户\n",
       " 1062  b85512fd138ad724a176e9829522f7c8   王超  非意向用户\n",
       " 1063  f9cdd6decaf70a77d2326f81d72a6a48   王超   跟单失败\n",
       " 1064  1f8be623e659f0d524a262e2f720d133   王超  非意向用户\n",
       " 1065  1f878d57f791fdc4f40ca60ecb94a73a   王超  非意向用户\n",
       " \n",
       " [1066 rows x 3 columns],\n",
       " '2020-06-07':                                    手机号 销售姓名   沟通结果\n",
       " 0     9d5fe460e1c6a4f6b1e43787cb5df85d   刘洋   继续跟单\n",
       " 1     47fc3276915e33d4741b970321ae8c57   刘洋   跟单失败\n",
       " 2     66acca4d292a6bad47eb7cdbe9db3c70   刘洋  非意向用户\n",
       " 3     0afbb8c00d88c7fcd05959863b3122e5   刘洋   跟单失败\n",
       " 4     ff761c4c8f6f784558a29df456f48592   刘洋   继续跟单\n",
       " ...                                ...  ...    ...\n",
       " 1062  b109b20159a85df32c235ecded3700e1   王超   跟单失败\n",
       " 1063  0be98d61c95345479be4ee3d5270f4c0   王超  非意向用户\n",
       " 1064  4d50bacff609780bed6ae31178d2904f   王超   继续跟单\n",
       " 1065  b5ec749afcb0bc8dd34b2596af218b21   王超  非意向用户\n",
       " 1066  c2eaf8df59964f122ce6d2644f3583e1   王超  非意向用户\n",
       " \n",
       " [1067 rows x 3 columns],\n",
       " '2020-06-08':                                    手机号 销售姓名    沟通结果\n",
       " 0     ecaa1588c33fdb71c3711df88baba5db   刘洋   非意向用户\n",
       " 1     4a9a04c3c3f1103589d55aaeece851cb   刘洋   非意向用户\n",
       " 2     ec2929f34841e9af608360e3c39b2d66   刘洋   非意向用户\n",
       " 3     d81f6a24dd9a1ac99156157d3751c0ef   刘洋    跟单失败\n",
       " 4     dd9bcf5229321f9e5835c6b780dcd59b   刘洋   非意向用户\n",
       " ...                                ...  ...     ...\n",
       " 1063  7701e505f5072c6d78db8e0a52952094   王超   非意向用户\n",
       " 1064  da66a5b663402e5d1f75d9e865a45ad7   王超  直接签单成功\n",
       " 1065  130a602f2ebfdc74156fa7bb593c4dd1   王超    继续跟单\n",
       " 1066  9b5d22215158146fc48b0c38986c9351   王超   非意向用户\n",
       " 1067  6ee3b94add58dbaddfcdc61e13114563   王超  直接签单成功\n",
       " \n",
       " [1068 rows x 3 columns],\n",
       " '2020-06-09':                                    手机号 销售姓名    沟通结果\n",
       " 0     9aac35baa72929f4c9f1c43e33137c03   刘洋   非意向用户\n",
       " 1     cddb8a0c0789db7aa702fe3d01d93eaf   刘洋    继续跟单\n",
       " 2     3a04988ff0bf2f19ece3f628153829b5   刘洋  直接签单成功\n",
       " 3     8324d101593424c0e3d5efd01757efd1   刘洋   非意向用户\n",
       " 4     499f989e9ef14da9cb92792490a80ffb   刘洋    继续跟单\n",
       " ...                                ...  ...     ...\n",
       " 1039  5b1c0aebe1c9e7f66abac113ad87e51e   王超   非意向用户\n",
       " 1040  5e7bbb5ffbb901430c848d56ea346b86   王超   非意向用户\n",
       " 1041  ece311029e370685db956eaca2af74bb   王超  直接签单成功\n",
       " 1042  42cf48ed5413fe89ad3aa5ac29b4bc94   王超   非意向用户\n",
       " 1043  6f4b50d1ca4de2afdbacb57dbc56e8f5   王超    继续跟单\n",
       " \n",
       " [1044 rows x 3 columns],\n",
       " '2020-06-10':                                    手机号 销售姓名   沟通结果\n",
       " 0     f7ebd0c41c7925814dda47cc512a1039   刘洋   继续跟单\n",
       " 1     d19de63e34c730697d97e05bcf601faa   刘洋   继续跟单\n",
       " 2     88c709b9608ab21dbf6b1d00c984b9db   刘洋  非意向用户\n",
       " 3     e01778a516259ba63a0ab3353959b524   刘洋   继续跟单\n",
       " 4     38681bd9c61f4f12bff656951f5f8148   刘洋   跟单失败\n",
       " ...                                ...  ...    ...\n",
       " 1065  99e5b822c7264840bc992019cebe09e9   王超  非意向用户\n",
       " 1066  19c5da5d89637a1ac17b248fcf28e991   王超  非意向用户\n",
       " 1067  e6f66a28acc6d08fbdb9886314e16f1f   王超   跟单失败\n",
       " 1068  485b8b2a2c5a4da1621bbd00e0bb4a46   王超   跟单失败\n",
       " 1069  3367aca2bbfc1b500b495f8e7fa7556f   王超  非意向用户\n",
       " \n",
       " [1070 rows x 3 columns],\n",
       " '2020-06-11':                                    手机号 销售姓名   沟通结果\n",
       " 0     9f5769ebb4e630e946fcc1d39ba6e9ad   刘洋   跟单失败\n",
       " 1     7efa9a1ffe87e1e41acb96e946a08b58   刘洋   跟单失败\n",
       " 2     ce8ded50ffb3083027fe55985ec1daf0   刘洋   跟单失败\n",
       " 3     6da5093fec10c8a3dcb31f93229e7859   刘洋   跟踪超时\n",
       " 4     603a6c7583ff0827eb3af6178f01dcac   刘洋   继续跟单\n",
       " ...                                ...  ...    ...\n",
       " 1055  64695ae84ac56a608f0bdd2ade802313   王超   跟踪超时\n",
       " 1056  5507c82a26372ae9c20592ea94e3e53d   王超   继续跟单\n",
       " 1057  a9ec263030bcd1d15192cdae46e7f17c   王超   跟单失败\n",
       " 1058  b7631a5da863262d8d2f76cda783d6a6   王超   继续跟单\n",
       " 1059  868d944022a0ca0d44ef1fac224a8694   王超  非意向用户\n",
       " \n",
       " [1060 rows x 3 columns],\n",
       " '2020-06-12':                                    手机号 销售姓名   沟通结果\n",
       " 0     1d31a144b1aea37045b2909f943de904   刘洋   继续跟单\n",
       " 1     6c243f07a29cd08851b7660d826d414e   刘洋   继续跟单\n",
       " 2     9d6c450ae17da5e11525587e749af8d8   刘洋  非意向用户\n",
       " 3     9bf1d90ebf9dc665a58cc5499a7a60a9   刘洋   继续跟单\n",
       " 4     c26e529a9c7d9663bcb54515da671c7d   刘洋   继续跟单\n",
       " ...                                ...  ...    ...\n",
       " 1031  ad07bcc1efd3ebb04b25af4660210d29   王超  非意向用户\n",
       " 1032  4dc591ff0b7a8cb473e4abc624717e81   王超  非意向用户\n",
       " 1033  b518db923d809cdb57bcd658bd78aafc   王超   跟单失败\n",
       " 1034  6227be0d95a61bf1418edc4ab6acdf53   王超   跟单失败\n",
       " 1035  a39b04f5c659e36e62c361d2d1b868e7   王超   继续跟单\n",
       " \n",
       " [1036 rows x 3 columns],\n",
       " '2020-06-13':                                    手机号 销售姓名    沟通结果\n",
       " 0     76d0cea2f33ce01a478cdcaa7095793b   刘洋    继续跟单\n",
       " 1     5f1d9573cf0cf35a3fa6a752a755f916   刘洋    继续跟单\n",
       " 2     b9c7a64d4a0f66349b3fa95b131e6d9f   刘洋  直接签单成功\n",
       " 3     3e0051f1bdcb6e6b5338b568e3df78f3   刘洋    继续跟单\n",
       " 4     2e7c1c6cbdd89275f576667c05007362   刘洋    跟单成功\n",
       " ...                                ...  ...     ...\n",
       " 1065  f9ffccd8f02a1e0d9db54968c8eab164   王超    跟单失败\n",
       " 1066  83c4fd11ad1e6afcdf3e64d9c0f29d0c   王超   非意向用户\n",
       " 1067  db9f46da56946401711469cd9e322b1d   王超   非意向用户\n",
       " 1068  487aec953ff2285a56d5b13400c380cf   王超   非意向用户\n",
       " 1069  bd318ae5fbf403c03a56494c874e0108   王超   非意向用户\n",
       " \n",
       " [1070 rows x 3 columns],\n",
       " '2020-06-14':                                    手机号 销售姓名   沟通结果\n",
       " 0     7b7f52e8d87df24cf8ca3a664ce0adbb   刘洋   继续跟单\n",
       " 1     f4d85b81c5f297c2f1bf53e0f004165b   刘洋  非意向用户\n",
       " 2     4cb11852f0453a5b6ca275ae4a6c8ebe   刘洋   跟单成功\n",
       " 3     159f17db714721e62ebf1aa00123d05b   刘洋   继续跟单\n",
       " 4     1d8864932674a6d0f73ef6a4c3beda51   刘洋   继续跟单\n",
       " ...                                ...  ...    ...\n",
       " 1071  548b4424abfeda9afdbc91373b1c977a   王超   继续跟单\n",
       " 1072  1b1e5f2f716ef8989237f039803f73c9   王超   跟踪超时\n",
       " 1073  c9b08b4f23e42e9405f051473d5499ee   王超  非意向用户\n",
       " 1074  19f6e192053062b4856fba26b2bf2873   王超   继续跟单\n",
       " 1075  c5668d16143ffbbf6455c82d8845beec   王超   继续跟单\n",
       " \n",
       " [1076 rows x 3 columns],\n",
       " '2020-06-15':                                    手机号 销售姓名    沟通结果\n",
       " 0     e1f13f0b18377df8c9ad752bd2bef733   刘洋    继续跟单\n",
       " 1     4032daad3e09ebccaa861ca4982fccc1   刘洋    继续跟单\n",
       " 2     270c6d48666d9c848cbc95fab58bd7f0   刘洋  直接签单成功\n",
       " 3     97453d6a009b9e8a20ab7859da663ac8   刘洋   非意向用户\n",
       " 4     47bc795850a77fa3dc195f982ff93f69   刘洋   非意向用户\n",
       " ...                                ...  ...     ...\n",
       " 1080  eabdeda73694cc89bd647ddd12b9ad2a   王超   非意向用户\n",
       " 1081  a100d0e9acdbfab0c05c8a69db4efc62   王超   非意向用户\n",
       " 1082  d19bdd126b07fd49ed4b020787ed3620   王超    跟单失败\n",
       " 1083  ec7f08837ae2fb8af7d1a82b38ede9f2   王超   非意向用户\n",
       " 1084  6ed9cd61814f5595f40123f1cd37d4ce   王超    继续跟单\n",
       " \n",
       " [1085 rows x 3 columns],\n",
       " '2020-06-16':                                    手机号 销售姓名   沟通结果\n",
       " 0     54cca96847a8c995223faad102728abf   刘洋   继续跟单\n",
       " 1     b7c2c4b30930378cc1828ad21702bd7e   刘洋  非意向用户\n",
       " 2     81d333aedd3d954df73a59f7171fc929   刘洋  非意向用户\n",
       " 3     d6a0fbd41e509176c732944cfd435d84   刘洋   跟踪超时\n",
       " 4     11271a4371551dc691bc2b5cc1a1cb5a   刘洋   继续跟单\n",
       " ...                                ...  ...    ...\n",
       " 1073  bede273d48e8d256fdc30818ff55fda9   王超  非意向用户\n",
       " 1074  59bda2d5576aef819021982a7b127f3d   王超  非意向用户\n",
       " 1075  6f95cfdd56fd603b339b817a123ff8ee   王超   跟单失败\n",
       " 1076  ee5ed83a2bf2dfc721671461dc7abbca   王超  非意向用户\n",
       " 1077  2034ba78b1ed745043c05eea85acf1a0   王超  非意向用户\n",
       " \n",
       " [1078 rows x 3 columns],\n",
       " '2020-06-17':                                    手机号 销售姓名    沟通结果\n",
       " 0     f150380caf715d4d4a61b3dc4e5735d7   刘洋    继续跟单\n",
       " 1     84b3e9bfe05c2a39fce03ccf42376cb4   刘洋    继续跟单\n",
       " 2     2c7bcdf965b3248022b8b2cee2be20a7   刘洋   非意向用户\n",
       " 3     d2d857845c73e501be9f91c19540dcf5   刘洋   非意向用户\n",
       " 4     b255744527b26c17abb56115aab1666a   刘洋   非意向用户\n",
       " ...                                ...  ...     ...\n",
       " 1068  8b95bf239337bf2e8be07f6e0eec8207   王超   非意向用户\n",
       " 1069  146d4b8483289f370f3e4691e05fd052   王超    继续跟单\n",
       " 1070  a6140b7d52789c785e854e1d6e34427b   王超   非意向用户\n",
       " 1071  a443e9797437c85ad0d57b69afa6292a   王超  直接签单成功\n",
       " 1072  0580f8404ef83228691f5c72b1ed866b   王超    跟单失败\n",
       " \n",
       " [1073 rows x 3 columns],\n",
       " '2020-06-18':                                    手机号 销售姓名   沟通结果\n",
       " 0     71c3384fbe110cab9aef4d6cb03ad01d   刘洋  非意向用户\n",
       " 1     e265b540a595455ee94093b1fc1d6e1b   刘洋  非意向用户\n",
       " 2     954d0e3ccb8295903fc769d7041c0478   刘洋  非意向用户\n",
       " 3     f0c1f7866ef899e325c8624819f148da   刘洋   继续跟单\n",
       " 4     9d8ccfef7201af6ee5c0c546c5ce9d39   刘洋   跟单失败\n",
       " ...                                ...  ...    ...\n",
       " 1053  06ba9943ab6eede2f57c98de6f703f33   王超  非意向用户\n",
       " 1054  8ac622178425193e506ee687f2a087fb   王超   跟单失败\n",
       " 1055  2952fac4a40f2c024933154040f42219   王超  非意向用户\n",
       " 1056  44548510308a78402216b8eacf3c5f25   王超  非意向用户\n",
       " 1057  6e0d8674f6bc2401b37a0f04c01c121f   王超  非意向用户\n",
       " \n",
       " [1058 rows x 3 columns],\n",
       " '2020-06-19':                                    手机号 销售姓名   沟通结果\n",
       " 0     e101f7cdb2cc8bb4eefe5884e77a1f2a   刘洋  非意向用户\n",
       " 1     ba2b3b7bfff74bac4c6bf6d8e91b8a40   刘洋  非意向用户\n",
       " 2     ca7526c17d52e122e78f460a725ff6af   刘洋   继续跟单\n",
       " 3     caced2ce3d609f44f9425865d1c75c02   刘洋   跟踪超时\n",
       " 4     6d43d2f7d7b70bc04cfb03883c67f7fd   刘洋   继续跟单\n",
       " ...                                ...  ...    ...\n",
       " 1029  db3feb1022ba991b91eae729260826ff   王超  非意向用户\n",
       " 1030  7ebe7abddeba776deabce68a7c00e62b   王超  非意向用户\n",
       " 1031  073e5e96b6c6f555abb43d3d6009115c   王超   继续跟单\n",
       " 1032  796c7bbbf5948b8fbe3e8f682d4838f3   王超  非意向用户\n",
       " 1033  0d253bf642b2d0011d6820ed833f9d0c   王超   继续跟单\n",
       " \n",
       " [1034 rows x 3 columns],\n",
       " '2020-06-20':                                    手机号 销售姓名    沟通结果\n",
       " 0     91f3ae21823aa48e02f4964c462573be   刘洋   非意向用户\n",
       " 1     c6d6c993aa059987e08228563ff6313c   刘洋   非意向用户\n",
       " 2     a733992cf24c090ce847e7a9e07bb889   刘洋    继续跟单\n",
       " 3     7ea716f2b0ad6772cd7dfde15236709e   刘洋   非意向用户\n",
       " 4     bf79c8b210300b8b86ecc162fade585b   刘洋  直接签单成功\n",
       " ...                                ...  ...     ...\n",
       " 1053  ffacdc922b5b08a08c347583636c994f   王超    跟单失败\n",
       " 1054  6166178a911e8e4a2db9f0b505af806d   王超    跟单失败\n",
       " 1055  e1f3f102d72a9835c8c722c019459944   王超   非意向用户\n",
       " 1056  eaff609fb76d9590a4de3911cf85de09   王超    跟单失败\n",
       " 1057  9f5709e536923ebcf8e4ba9d1e7bab78   王超   非意向用户\n",
       " \n",
       " [1058 rows x 3 columns],\n",
       " '2020-06-21':                                    手机号 销售姓名    沟通结果\n",
       " 0     d9e05370be1ad10b6e8e807fecc578d6   刘洋   非意向用户\n",
       " 1     da3c7de6422a8005a63ab405086c1110   刘洋   非意向用户\n",
       " 2     8309c6d46702da3aaf840139104dd80c   刘洋    继续跟单\n",
       " 3     dfa449fe2b6110a73767802eed2d332a   刘洋    继续跟单\n",
       " 4     85f6a454fbd1badc266c369ec317f950   刘洋   非意向用户\n",
       " ...                                ...  ...     ...\n",
       " 1058  6a26cd26b7b8d4d0d03701cbdf9a835d   王超   非意向用户\n",
       " 1059  1746b51518ee2c0c19e04341beffc690   王超  直接签单成功\n",
       " 1060  2e9f809dde949b0bb3699ad92ae66d99   王超    继续跟单\n",
       " 1061  ec191ebecad566085ce4fced11017b94   王超   非意向用户\n",
       " 1062  d992d5bfee67fb4f8c11d0ab214b9c9a   王超   非意向用户\n",
       " \n",
       " [1063 rows x 3 columns],\n",
       " '2020-06-22':                                    手机号 销售姓名    沟通结果\n",
       " 0     fd2d5c52ff73c0cb92b66d62bd0985cc   刘洋    跟单失败\n",
       " 1     c1d79e7904972bff3595c86060e244b1   刘洋    跟单成功\n",
       " 2     185e8159faca5171e2ebc13e6e42edec   刘洋    继续跟单\n",
       " 3     340959239305e8c27e4ea544cd1a7730   刘洋   非意向用户\n",
       " 4     6c18426f37e94e66631c5b07fe6306c9   刘洋    跟单成功\n",
       " ...                                ...  ...     ...\n",
       " 1035  93489cd0fbdc305f26b631cd7a0bbddf   王超    继续跟单\n",
       " 1036  9aed2433b79a5ef960bd699575520e27   王超  直接签单成功\n",
       " 1037  ba0be3cce844fce3dcabba527802ef89   王超  直接签单成功\n",
       " 1038  aaa2aa749b76a70d60b5ed9584e2b9fd   王超   非意向用户\n",
       " 1039  1b20732012ada0e3cc789ea56f9b51bc   王超   非意向用户\n",
       " \n",
       " [1040 rows x 3 columns],\n",
       " '2020-06-23':                                    手机号 销售姓名   沟通结果\n",
       " 0     7d6c59250c5cb170d903181323ca3bdc   刘洋   继续跟单\n",
       " 1     998db95fdddf434f28d5c3d7e9830d17   刘洋  非意向用户\n",
       " 2     0a9d0052faaa6c400f3cb536f8e42711   刘洋   继续跟单\n",
       " 3     aac6ffba89a89a0c0ea2bbb5df79ef8b   刘洋  非意向用户\n",
       " 4     d66536b62f967ac744c5e9a7fd1c6ff5   刘洋   跟单失败\n",
       " ...                                ...  ...    ...\n",
       " 1049  9e349ddcade468434b367ab8b8431858   王超   继续跟单\n",
       " 1050  a49fe0b2a4406c222f7dc6d6a2f73bb6   王超  非意向用户\n",
       " 1051  60a77b10d74ab4f1ed6f0585d408c26b   王超  非意向用户\n",
       " 1052  cf481dfe88925884c5384f5ae3653abd   王超  非意向用户\n",
       " 1053  ad4e4b09beab0daeb908eda2533d2e37   王超   继续跟单\n",
       " \n",
       " [1054 rows x 3 columns],\n",
       " '2020-06-24':                                    手机号 销售姓名    沟通结果\n",
       " 0     e854fa11381bf542e0361fac151c98c6   刘洋    继续跟单\n",
       " 1     2c59c32b5701811a82ea28a0f123044d   刘洋    继续跟单\n",
       " 2     892c0a7bde6b95b322eba714b0700d4b   刘洋   非意向用户\n",
       " 3     9cc1f6518874c8efda5d3bec63565156   刘洋   非意向用户\n",
       " 4     1aa89040e8bc21e3823e6aa5a68d7b95   刘洋    继续跟单\n",
       " ...                                ...  ...     ...\n",
       " 1058  fa840f0079936c8097f2d74aa6240ec9   王超  直接签单成功\n",
       " 1059  c8df5cb2c1d4ad9d6d1b5624fcb6ae75   王超    跟单失败\n",
       " 1060  ed6d1311cfa1515e9b2a5b1ea2b11d67   王超   非意向用户\n",
       " 1061  f22466186b63ac54e0bc80c0acd21b3f   王超   非意向用户\n",
       " 1062  70dd3a1f49ec01b75b87c5975f9474b0   王超   非意向用户\n",
       " \n",
       " [1063 rows x 3 columns],\n",
       " '2020-06-25':                                    手机号 销售姓名   沟通结果\n",
       " 0     ceb529aa255f7d05080d2ca50e098fbc   刘洋  非意向用户\n",
       " 1     56c8e0f9f8816cf10628cbc30f571410   刘洋   跟单失败\n",
       " 2     cf111092574cde4ff15946ea19f8a076   刘洋  非意向用户\n",
       " 3     9079279d80ca21b49f724817c1f9516a   刘洋   继续跟单\n",
       " 4     7a87e85f53cc0eaa7c8c2053e696a749   刘洋  非意向用户\n",
       " ...                                ...  ...    ...\n",
       " 1035  c8ef26481bbdba736111bfc48a8058ef   王超  非意向用户\n",
       " 1036  2141734528eab8e85cec4689d2abd764   王超   跟单失败\n",
       " 1037  9125998eb511320b63e15e51c4a1e03b   王超   跟单失败\n",
       " 1038  31b43cbc71df07799ca10ad3010bdee0   王超  非意向用户\n",
       " 1039  96453c29f13af12b95b5c5c9b3f8df3b   王超   跟单失败\n",
       " \n",
       " [1040 rows x 3 columns],\n",
       " '2020-06-26':                                    手机号 销售姓名   沟通结果\n",
       " 0     bbf6282c7ae0da5d2f928de71760d93f   刘洋  非意向用户\n",
       " 1     33c01483657945dd73bc4cafdc757c14   刘洋   继续跟单\n",
       " 2     954671ecb000dee0a33ab2d777312f7e   刘洋  非意向用户\n",
       " 3     34c110c1c797ee0870996ca7d615f2d5   刘洋  非意向用户\n",
       " 4     2b101ccf93bea04b05c2e6615a4eee1c   刘洋   跟单成功\n",
       " ...                                ...  ...    ...\n",
       " 1062  4f31f64cefd957b2e2101e6486370ac6   王超   跟单失败\n",
       " 1063  6c1b76e4c4243ae801f6a2bd6dbba871   王超  非意向用户\n",
       " 1064  104637b9cbce9a96e5e4e5f6082edcf4   王超   跟单成功\n",
       " 1065  58dc9047e4c2771303b421df5103319c   王超  非意向用户\n",
       " 1066  071a03c6f977a71357602de6f0b9558c   王超  非意向用户\n",
       " \n",
       " [1067 rows x 3 columns],\n",
       " '2020-06-27':                                    手机号 销售姓名   沟通结果\n",
       " 0     89708023e3564f348d11edd0d4320e33   刘洋  非意向用户\n",
       " 1     f1260973e440d9642137ba3e78cef137   刘洋   跟踪超时\n",
       " 2     c84c101aa54d2fd1fa1706c05bb245ce   刘洋   跟单失败\n",
       " 3     5850c0e1b34f4608d62657b5daeb1121   刘洋  非意向用户\n",
       " 4     902f160472deac59decbb4231fb95a72   刘洋   跟单失败\n",
       " ...                                ...  ...    ...\n",
       " 1070  405cb948abcc64990f4c6ea82444d482   王超  非意向用户\n",
       " 1071  e8047d7fce9c3c5227d2e6c1f1ca4b58   王超   跟单失败\n",
       " 1072  946e0d2a3da81ea7d98ae36dbf977b00   王超   跟单成功\n",
       " 1073  02fbbecc8ab674805a914c9d803b35c8   王超  非意向用户\n",
       " 1074  753cb9345abbff72003fdd535d244706   王超  非意向用户\n",
       " \n",
       " [1075 rows x 3 columns],\n",
       " '2020-06-28':                                    手机号 销售姓名   沟通结果\n",
       " 0     3c747e6ebf923f0a99956d9dc00acbab   刘洋  非意向用户\n",
       " 1     93b7f82699854883085916e4353d0e06   刘洋  非意向用户\n",
       " 2     27c03f57416565291c188c9dc92e7071   刘洋  非意向用户\n",
       " 3     3ea36405e26706d82bfe74d6397800cb   刘洋   继续跟单\n",
       " 4     e33075622e134c9c5eb63f97b6224704   刘洋  非意向用户\n",
       " ...                                ...  ...    ...\n",
       " 1048  4892a74e7c7d528cd2af3f9e946da95f   王超  非意向用户\n",
       " 1049  9acf9cb23c57fb896cfdbbd23c26e8a4   王超   跟单失败\n",
       " 1050  f4a81c7b5abb0589e7b2820bdac6eff5   王超   继续跟单\n",
       " 1051  5017fb05d4f1f6f5ced588a6d2f9256d   王超  非意向用户\n",
       " 1052  0328055443c5338ebbfd0bbad32d6c05   王超   继续跟单\n",
       " \n",
       " [1053 rows x 3 columns],\n",
       " '2020-06-29':                                    手机号 销售姓名   沟通结果\n",
       " 0     135593ec661b38d51bec52ca26e0a8a8   刘洋  非意向用户\n",
       " 1     c7e6b6055e954b506b53332aaa39ce44   刘洋   跟单失败\n",
       " 2     17810ad73067e8706f5b67f2ec8834fa   刘洋   继续跟单\n",
       " 3     3f9b2bdb8c49f37a7ba553635abd9471   刘洋  非意向用户\n",
       " 4     66636788d936570e3d2b773a45c6a66e   刘洋   跟单失败\n",
       " ...                                ...  ...    ...\n",
       " 1058  ffa05f7e6fc52badb03fece24f4e47b5   王超   继续跟单\n",
       " 1059  86aed9585f3e23ca0cd2c45b09078a36   王超  非意向用户\n",
       " 1060  210eac40c80d848630490096793be855   王超  非意向用户\n",
       " 1061  d2547010b6c7693bd4aab604d505b8fc   王超  非意向用户\n",
       " 1062  eefd8ff7264a7219447f795be187fae4   王超   继续跟单\n",
       " \n",
       " [1063 rows x 3 columns],\n",
       " '2020-06-30':                                    手机号 销售姓名   沟通结果\n",
       " 0     caabc5b54c8abefb20d6ed44afeadc69   刘洋   继续跟单\n",
       " 1     2d553ae33d34bd03c7ccfc09dcbb44e5   刘洋   继续跟单\n",
       " 2     f25d9bbfe5173a425a2b540f716de815   刘洋   继续跟单\n",
       " 3     39f87e9d352ee9f24de0d16ce946ba20   刘洋   跟单失败\n",
       " 4     430cb654704188f461a3718d2fb24df6   刘洋   跟单失败\n",
       " ...                                ...  ...    ...\n",
       " 1066  d4cfb647b0bb60b5928c52780782e383   王超  非意向用户\n",
       " 1067  32eb47208d4ff7a5c5d7a2d973143cf0   王超   继续跟单\n",
       " 1068  4dce7718e7b02c03b7244ebcefae90ae   王超  非意向用户\n",
       " 1069  6acf34713bb3ffd5053f0b62ac2fae2b   王超  非意向用户\n",
       " 1070  910ba9edf17efd5789daa4551358aac7   王超  非意向用户\n",
       " \n",
       " [1071 rows x 3 columns]}"
      ]
     },
     "execution_count": 36,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "mission_df_dict = pd.read_excel(r\"C:\\Users\\Administrator\\Downloads\\第三周sql\\第三周课程课件\\第三周第十节项目资料\\数据\\2020-06月销售任务清单.xlsx\",\n",
    "                                sheet_name = None\n",
    "                               )\n",
    "mission_df_dict"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 添加日期列\n",
    "for createDate in mission_df_dict.keys():\n",
    "    mission_df_dict[createDate][\"createDate\"] = createDate"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 91,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>手机号</th>\n",
       "      <th>销售姓名</th>\n",
       "      <th>沟通结果</th>\n",
       "      <th>createDate</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>04875e81bd8363d57a45023dfe0f6fad</td>\n",
       "      <td>刘洋</td>\n",
       "      <td>继续跟单</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>664ce871652fc5000537372196d303e1</td>\n",
       "      <td>刘洋</td>\n",
       "      <td>非意向用户</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>c10304ba5e13f140c15d9ca2356abec2</td>\n",
       "      <td>刘洋</td>\n",
       "      <td>非意向用户</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>5ba2bc25041f5a246e8fcbd070afb47d</td>\n",
       "      <td>刘洋</td>\n",
       "      <td>继续跟单</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>fa5dfbe3e3b7bdb1fefe8c2498204d49</td>\n",
       "      <td>刘洋</td>\n",
       "      <td>非意向用户</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                手机号 销售姓名   沟通结果  createDate\n",
       "0  04875e81bd8363d57a45023dfe0f6fad   刘洋   继续跟单  2020-06-01\n",
       "1  664ce871652fc5000537372196d303e1   刘洋  非意向用户  2020-06-01\n",
       "2  c10304ba5e13f140c15d9ca2356abec2   刘洋  非意向用户  2020-06-01\n",
       "3  5ba2bc25041f5a246e8fcbd070afb47d   刘洋   继续跟单  2020-06-01\n",
       "4  fa5dfbe3e3b7bdb1fefe8c2498204d49   刘洋  非意向用户  2020-06-01"
      ]
     },
     "execution_count": 91,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_mission = pd.concat(\n",
    "    [mission_df_dict[createDate] for createDate in mission_df_dict.keys()],axis = 0\n",
    ")\n",
    "df_mission.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 93,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0       04875e81bd8363d57a45023dfe0f6fad\n",
       "1       664ce871652fc5000537372196d303e1\n",
       "2       c10304ba5e13f140c15d9ca2356abec2\n",
       "3       5ba2bc25041f5a246e8fcbd070afb47d\n",
       "4       fa5dfbe3e3b7bdb1fefe8c2498204d49\n",
       "                      ...               \n",
       "1066    d4cfb647b0bb60b5928c52780782e383\n",
       "1067    32eb47208d4ff7a5c5d7a2d973143cf0\n",
       "1068    4dce7718e7b02c03b7244ebcefae90ae\n",
       "1069    6acf34713bb3ffd5053f0b62ac2fae2b\n",
       "1070    910ba9edf17efd5789daa4551358aac7\n",
       "Name: 手机号, Length: 31149, dtype: object"
      ]
     },
     "execution_count": 93,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_mission[\"手机号\"]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 94,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>tel</th>\n",
       "      <th>salesstaff_name</th>\n",
       "      <th>status</th>\n",
       "      <th>createDate</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>04875e81bd8363d57a45023dfe0f6fad</td>\n",
       "      <td>刘洋</td>\n",
       "      <td>继续跟单</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>664ce871652fc5000537372196d303e1</td>\n",
       "      <td>刘洋</td>\n",
       "      <td>非意向用户</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>c10304ba5e13f140c15d9ca2356abec2</td>\n",
       "      <td>刘洋</td>\n",
       "      <td>非意向用户</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>5ba2bc25041f5a246e8fcbd070afb47d</td>\n",
       "      <td>刘洋</td>\n",
       "      <td>继续跟单</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>fa5dfbe3e3b7bdb1fefe8c2498204d49</td>\n",
       "      <td>刘洋</td>\n",
       "      <td>非意向用户</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                tel salesstaff_name status  createDate\n",
       "0  04875e81bd8363d57a45023dfe0f6fad              刘洋   继续跟单  2020-06-01\n",
       "1  664ce871652fc5000537372196d303e1              刘洋  非意向用户  2020-06-01\n",
       "2  c10304ba5e13f140c15d9ca2356abec2              刘洋  非意向用户  2020-06-01\n",
       "3  5ba2bc25041f5a246e8fcbd070afb47d              刘洋   继续跟单  2020-06-01\n",
       "4  fa5dfbe3e3b7bdb1fefe8c2498204d49              刘洋  非意向用户  2020-06-01"
      ]
     },
     "execution_count": 94,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#修改列明\n",
    "df_mission.columns = [\"tel\",\"salesstaff_name\",\"status\",\"createDate\"]\n",
    "df_mission.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['继续跟单', '非意向用户', '直接签单成功', '跟单失败', '跟单成功', '跟踪超时']"
      ]
     },
     "execution_count": 40,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#统计所以沟通结果status\n",
    "status = df_mission[\"status\"].unique().tolist()\n",
    "status"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>content</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>继续跟单</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>非意向用户</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>直接签单成功</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>跟单失败</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>跟单成功</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  content\n",
       "0    继续跟单\n",
       "1   非意向用户\n",
       "2  直接签单成功\n",
       "3    跟单失败\n",
       "4    跟单成功"
      ]
     },
     "execution_count": 41,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#创造status的dataframe，来写入sql\n",
    "df_status = pd.DataFrame(\n",
    "    status,\n",
    "    columns = [\"content\"]\n",
    ")\n",
    "df_status.head()\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "metadata": {},
   "outputs": [],
   "source": [
    "#写入数据库\n",
    "df_status.to_sql(\n",
    "    \"status\",\n",
    "    conn2,\n",
    "    index = False,\n",
    "    if_exists = \"append\"\n",
    ")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 沟通任务"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 65,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>customer_id</th>\n",
       "      <th>salesstaff_id</th>\n",
       "      <th>status_id</th>\n",
       "      <th>createDate</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>7409</td>\n",
       "      <td>8</td>\n",
       "      <td>1</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>19304</td>\n",
       "      <td>8</td>\n",
       "      <td>2</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>27643</td>\n",
       "      <td>8</td>\n",
       "      <td>2</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>10895</td>\n",
       "      <td>8</td>\n",
       "      <td>1</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>3678</td>\n",
       "      <td>8</td>\n",
       "      <td>2</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   customer_id  salesstaff_id  status_id  createDate\n",
       "0         7409              8          1  2020-06-01\n",
       "1        19304              8          2  2020-06-01\n",
       "2        27643              8          2  2020-06-01\n",
       "3        10895              8          1  2020-06-01\n",
       "4         3678              8          2  2020-06-01"
      ]
     },
     "execution_count": 65,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_mission.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 66,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>tel</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>94a20c908ea398cefba903e2d6598ea2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>5abd29bae58e80cc2513b9aa0f3dd598</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>90875eb5b8fc1c84cf9a395f642ac092</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>05f8673bd351bdb9bf3f503013784da8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>f4e507f349ac8455d8426db77c377636</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   id                               tel\n",
       "0   1  94a20c908ea398cefba903e2d6598ea2\n",
       "1   2  5abd29bae58e80cc2513b9aa0f3dd598\n",
       "2   3  90875eb5b8fc1c84cf9a395f642ac092\n",
       "3   4  05f8673bd351bdb9bf3f503013784da8\n",
       "4   5  f4e507f349ac8455d8426db77c377636"
      ]
     },
     "execution_count": 66,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_customer = pd.read_sql(\n",
    "    \"select id,tel from customer\",\n",
    "    conn2\n",
    ")\n",
    "df_customer.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 67,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>tel</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>94a20c908ea398cefba903e2d6598ea2</th>\n",
       "      <td>1</td>\n",
       "      <td>94a20c908ea398cefba903e2d6598ea2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5abd29bae58e80cc2513b9aa0f3dd598</th>\n",
       "      <td>2</td>\n",
       "      <td>5abd29bae58e80cc2513b9aa0f3dd598</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>90875eb5b8fc1c84cf9a395f642ac092</th>\n",
       "      <td>3</td>\n",
       "      <td>90875eb5b8fc1c84cf9a395f642ac092</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>05f8673bd351bdb9bf3f503013784da8</th>\n",
       "      <td>4</td>\n",
       "      <td>05f8673bd351bdb9bf3f503013784da8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>f4e507f349ac8455d8426db77c377636</th>\n",
       "      <td>5</td>\n",
       "      <td>f4e507f349ac8455d8426db77c377636</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                  id                               tel\n",
       "94a20c908ea398cefba903e2d6598ea2   1  94a20c908ea398cefba903e2d6598ea2\n",
       "5abd29bae58e80cc2513b9aa0f3dd598   2  5abd29bae58e80cc2513b9aa0f3dd598\n",
       "90875eb5b8fc1c84cf9a395f642ac092   3  90875eb5b8fc1c84cf9a395f642ac092\n",
       "05f8673bd351bdb9bf3f503013784da8   4  05f8673bd351bdb9bf3f503013784da8\n",
       "f4e507f349ac8455d8426db77c377636   5  f4e507f349ac8455d8426db77c377636"
      ]
     },
     "execution_count": 67,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_customer.index = df_customer[\"tel\"].values\n",
    "df_customer.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 68,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'94a20c908ea398cefba903e2d6598ea2': 1,\n",
       " '5abd29bae58e80cc2513b9aa0f3dd598': 2,\n",
       " '90875eb5b8fc1c84cf9a395f642ac092': 3,\n",
       " '05f8673bd351bdb9bf3f503013784da8': 4,\n",
       " 'f4e507f349ac8455d8426db77c377636': 5,\n",
       " 'de39298ba26941840e146386726712c3': 6,\n",
       " '12d00e1f9372b2efb29413be3be299ae': 7,\n",
       " 'c0c82178f974fa1ed40e60c9ae72b8eb': 8,\n",
       " 'f2a89aedd5b57b3656459fc913432d24': 9,\n",
       " '6db2e0ef79bd4b1461c244428e467997': 10,\n",
       " '06206c7115f9fee591cb51fcc0060079': 11,\n",
       " '525f7fb91c497be839eba16fe588ab5c': 12,\n",
       " 'e748dc95fd8e241f07d7774f9dd0b9b9': 13,\n",
       " '61ceab2e2c8357806303e532f3e99c64': 14,\n",
       " '4af05ac2132a43a34b94ffebe1eeff06': 15,\n",
       " 'd34bf83271c49c6a218977e5efce357d': 16,\n",
       " '763b3a2140685ae8105a89428f5ebb85': 17,\n",
       " '6baaeb59f010aa7371756bffe5133f8c': 18,\n",
       " 'd5ccaf283ec841184c4a815483e1d660': 19,\n",
       " 'b2f9650bd5ffc1159fdf8c6aa4f720bb': 20,\n",
       " 'c7a981b684d178e0339b09df42c9947f': 21,\n",
       " '623ef9f449bf880caf5e485c7e0b3dd7': 22,\n",
       " '8cb245b651c1925be27f07808ebe02e7': 23,\n",
       " 'cb7b354d1088c3c4c6ff490d2ab649f7': 24,\n",
       " 'cd749b8a2a519712bf89538278f94d41': 25,\n",
       " '5e4662bdfc838783218c970fc04aad02': 26,\n",
       " 'a51257aba4bd89d33d3a6fa942d45870': 27,\n",
       " '2b62343636cbca2c9cedbc5e61c7bf02': 28,\n",
       " 'cd08aef7321364d3331766a407e2007c': 29,\n",
       " 'ad2cdd0046d883eeff435a2822785f49': 30,\n",
       " '3f9da93dabab167b674c56d2d750515b': 31,\n",
       " '334a8a8fc0274a1132ac265ac78ab5a0': 32,\n",
       " '0bc9380a196b75d4d5baf08908071ad4': 33,\n",
       " 'c6f68d10b98cbb22de2568e78615b314': 34,\n",
       " '1a97757a46318cce46aaaadf293ac3b9': 35,\n",
       " 'a7f14c87fc09313b238ef5d9553f0e30': 36,\n",
       " '8ef4fc4bf56800033b39848870abc26a': 37,\n",
       " '895218c3fa9c467222ff7fdb83b19284': 38,\n",
       " 'bcb45f276699c263697bb09cb368f94e': 39,\n",
       " '3551ad69203327b78e6c7a176fbd7896': 40,\n",
       " '20bfa6f2dcefcb6c66567705d92037a7': 41,\n",
       " '600827ed70cbc817f90c55c43da2e681': 42,\n",
       " '670a1521172054af53d0937cec0ba9f7': 43,\n",
       " '288bedf57ad9287a18b6d02b30ca9722': 44,\n",
       " '2549252229ee55987ad74453088a8059': 45,\n",
       " '4c8f984574b55870322dc40bea4636c5': 46,\n",
       " '1a3bc336e8575f201ca3e0cec8dbbe1c': 47,\n",
       " 'ddfb4c98743d3803adbca7528f443efd': 48,\n",
       " '3340b7ad0f9173505fb377261ccef12a': 49,\n",
       " '683686f5251a8a4b2b0cff8be186533d': 50,\n",
       " 'f3843b92cf33ab345c70155de32dec05': 51,\n",
       " '5d89ae76174ed72108110721cf7f4a5a': 52,\n",
       " '85c7f4dfd69469f5ceaa5a1f4657bbae': 53,\n",
       " 'cf59c1ced1b1db9b87e58f1bb9cd48e0': 54,\n",
       " 'e4384292789351a39c1eb47de55f6a26': 55,\n",
       " '1338de6dbb1f23181cab4e218b882edc': 56,\n",
       " 'e9ea0f25911e47206e95b8571a220a1e': 57,\n",
       " '4b2d0cae2c9ab60b04feebc540c04c23': 58,\n",
       " '9f1ded337522bf58ba21e5a057a7dbd2': 59,\n",
       " '702b410c03123f99300f1355e243efaa': 60,\n",
       " 'f67a7d48f2f2a4c332199db1006a9ad5': 61,\n",
       " 'aa60bffd241b44fd74b1d7b72db7fc52': 62,\n",
       " '1481ffa3e683ce7ad0ff95696b603a42': 63,\n",
       " '87f12b6effa5430284f2efa397c7f6e1': 64,\n",
       " 'c74945cf48e8fa175ad0d557645911c4': 65,\n",
       " 'aec5a1de7f5fb87db065520468d9fabf': 66,\n",
       " '3a3e337689d6881addb4dbacfdff6a7f': 67,\n",
       " '52012166681d66dd5650619c39d3753e': 68,\n",
       " '8c2eb539ef1f47e41ed6f14f6eaa1014': 69,\n",
       " '776cdb9c688b83932ffdef66f3cbb7fd': 70,\n",
       " '56c70d0ade67ddaf2e32aa9fb9b923ae': 71,\n",
       " '98d35ac78bd61b81ffc61c418ff9738c': 72,\n",
       " 'b7bacd2ca679df02f864c0497109e2fe': 73,\n",
       " '545fead6dc42b7805447d4e31606ae47': 74,\n",
       " '89327eb03cb2207434b3ddd1e6ab4653': 75,\n",
       " '7aa11ee9b6df8a6c3fa6d723a513ebf2': 76,\n",
       " '6c87bdf152e83eda6f4b7ee6705b1b8e': 77,\n",
       " 'ca0135d79b14465e51c22be73977ab3f': 78,\n",
       " 'd44b346909967a0a066f315080f9ad08': 79,\n",
       " 'a9c2aad26cd1185b92758bb0f3aff580': 80,\n",
       " '5586e6809e02dec9b7f3c46c3de08306': 81,\n",
       " 'ff29cb651b4db5603d55152c5cd4b9b9': 82,\n",
       " 'fe6a1c407e8417006288144deb8b39d0': 83,\n",
       " 'b63ca5038f06cc6c8dc71f7841fff9b7': 84,\n",
       " '879e22eaf5215a81d61f8246184ccd6d': 85,\n",
       " '488beff3182360030c7bc0e74046a9fc': 86,\n",
       " 'ed9f66815bb11e862236b0d3a9333c0a': 87,\n",
       " '47fc3276915e33d4741b970321ae8c57': 88,\n",
       " '08e09468338c8cb67093dd33d8a89452': 89,\n",
       " '82d9bd6fdcf9d9dedc62fb99c1255b42': 90,\n",
       " '2ea1a9fbf7216c86cf64fdfebe73c1eb': 91,\n",
       " '911bb3dfcd6d0df6831cad34eb0fdf71': 92,\n",
       " '09da6297fb5a8ee7dcc4e2a9fa50de32': 93,\n",
       " '82187ee6d0fe9f56ca85e8b680f7cb99': 94,\n",
       " '5c1ffc3102501ecbd3af5ad5c2d1ad01': 95,\n",
       " '65c8a806662a2c88d459553e871f841e': 96,\n",
       " '7f63661433ebfce620154da72301bc11': 97,\n",
       " 'c3961d051e9b20b0a2151abd0c0fa4a8': 98,\n",
       " 'c3b5eb8ef7bbf2a93e62e9de78bf7387': 99,\n",
       " 'cd803079e9a170b8af85ef1db14c8dd3': 100,\n",
       " 'c5d0f772f987728c122ac920b8d52c2a': 101,\n",
       " '87bf5f46f24d427a44b6e228a08802c4': 102,\n",
       " '4fb5fb194ac15937360928de0c386f4d': 103,\n",
       " '363a568bded2d5006a7dbfc4822b7430': 104,\n",
       " '41bc90d96b056f5c235ec2cb0a175e1e': 105,\n",
       " '8b1c58c4a0cd67f3423324e4effe94b6': 106,\n",
       " '9dbd6ed81b4ec250183c2f2e795191c8': 107,\n",
       " '547f36de4bc8818f4211b5590e2e5c3c': 108,\n",
       " '9c32d520b9082e5854e1f97d9d1c1622': 109,\n",
       " 'dd0d4c04079231d8f068c42784ddacd0': 110,\n",
       " '789132ed710b7ee5321ae6547ce64f03': 111,\n",
       " '5b2319f86eede746e348b0239e42502d': 112,\n",
       " '99035bf4934fbe473bf9e2a0d50b6836': 113,\n",
       " 'dab7db43e13c63a8e622ab8a7349dbe8': 114,\n",
       " '284daf9d7749a11861c2039eb7b74d86': 115,\n",
       " '28ee78b7a85e019277b35779ac5aa77c': 116,\n",
       " '9a5dc0de22c7955d95c8a1711d26a063': 117,\n",
       " '7f9b641270031c8ff2e064de037508de': 118,\n",
       " 'cd6b4bf059771e21d61e605eb8a35f42': 119,\n",
       " 'fc2228a7ab1cc0f264f91806d7b892b6': 120,\n",
       " '61293c412f4d1e19b820d4517e2dbd41': 121,\n",
       " '85e0eee96c1401e5f530b8684e4bacd0': 122,\n",
       " '20c9e635c6de8fc672eedca078b92237': 123,\n",
       " '05132eb1794f9fbedc8f30222994bc8f': 124,\n",
       " '8e0cd23e46ae519ab10e7ec01ae1ed72': 125,\n",
       " 'f43ac69d9727874b1bfdc6a582b18b81': 126,\n",
       " '4d329d33c40dd0a774e0d24c8b6a4768': 127,\n",
       " '1324cd4c16a86b5bf357757e302c65db': 128,\n",
       " 'aa4dfef3e77628b56ae57c9c76738b01': 129,\n",
       " '6e7ad5505eb8cd05877cf70e5005c5f5': 130,\n",
       " 'c4b52d2fd7c51431ff3f5cf4a7657cc1': 131,\n",
       " '74faad2c2b29212814c061891bccb029': 132,\n",
       " '245314cbd3147720e2a1d09ad8ca8e66': 133,\n",
       " 'fc5c4c5520a026beba67bcc45931902c': 134,\n",
       " 'a064fb269ec0e580d67e255d0138cb9b': 135,\n",
       " '7a0182c1b7b5cce3e62a08893fd55866': 136,\n",
       " '8e1d768214ede5b2cf6d97577147a6ac': 137,\n",
       " 'dbd6599f7a6a5a06b0eb99b82eb48718': 138,\n",
       " '606bf1b33dc46c4eda7c713ea2890ee9': 139,\n",
       " '05cdcfd7e5c986ab1d3abee4681948c8': 140,\n",
       " 'cfbdcb7e32d0c1752c3c0fbacae874e9': 141,\n",
       " '5b42c6c2b5feb35394d1bd30a3a14cdd': 142,\n",
       " 'ae6954023e17644d1a3a5accb0ed39ed': 143,\n",
       " '0b38db0fa8f551e061b2c5f615df06ed': 144,\n",
       " '8436a58f2c169aa8078f6a6e5c2657c0': 145,\n",
       " '3c2a3e2679702ab3cb14d30ecd281b7e': 146,\n",
       " '8babc977c07a6a5f5208d321a0a499fa': 147,\n",
       " 'a491acbabfc601f1636eaab71d2f1be7': 148,\n",
       " '08e935c5ca993a9f82c384b6849741c3': 149,\n",
       " 'eadb345b9b1b53fdea3a5c44c6921032': 150,\n",
       " '97e7cd6c73154549e1c35b5828582c1b': 151,\n",
       " '50eda18b24c76235e66956f559c3ef19': 152,\n",
       " '081df431f329f62a89ee7ae29a45c6c8': 153,\n",
       " '5e451cb64c96e7dde46ba3434ee1e9f5': 154,\n",
       " '0ecdc69ffc27e42191c43cf08458a3af': 155,\n",
       " 'cffb06f328456b2bddec32cb349d6fdc': 156,\n",
       " '6cda6ce6949614b994925c821384d7f1': 157,\n",
       " '8ecdb51d1767dac670c392c3e27b628e': 158,\n",
       " 'e9726a7780dcd953d5eb7e3327c7ad23': 159,\n",
       " '1a1678834b177231998ef07398767eff': 160,\n",
       " 'f2ca9f259fcb8be4b9dca28d9cad6557': 161,\n",
       " '4bb6fc9fdf8a710ca7aa8ec5bd27bab6': 162,\n",
       " 'f09d9d0e1b6a281bf2a952f053d95d31': 163,\n",
       " 'c2e4437b9c3255b38b5bc54038ffe27a': 164,\n",
       " '697b603e43de4af11350d45e09517b97': 165,\n",
       " '08579463bda88f4147a8faaa47515f78': 166,\n",
       " '26eb0350d2f37c165e77dc77c18b725e': 167,\n",
       " '7d0a10d2568833c3b90d1118e86532a3': 168,\n",
       " 'fab64b07f52d47623e139f929958367c': 169,\n",
       " '591dda85900662fde01710b6a70d7554': 170,\n",
       " 'f85b694047e624f6f68867ad8f5c33d9': 171,\n",
       " '0b47b2f7a77b24496e899a0f756d1e8b': 172,\n",
       " '8d49218351d4958a4e17fed16370824f': 173,\n",
       " '1f491f5187d06bf5bcfc4f6dfb07f790': 174,\n",
       " '44d6b54bb365f48da1f1b0aff21c5a42': 175,\n",
       " '7a2a441d60195d0dbc1eb135f0feb81b': 176,\n",
       " '06264b60aaf69cc35b98d0c287705f3e': 177,\n",
       " '054a345a76068f46d9feb967f7a2219f': 178,\n",
       " 'ef78fc5e60d4c4bd123e2c983507d09e': 179,\n",
       " '9cc43fe2627a47233ce851ba857d6ac0': 180,\n",
       " '9644c56fafc11838f9cbc05440155f00': 181,\n",
       " '99219c75277b622ec0f873a6987d50ae': 182,\n",
       " '2fb001c5bb8c4495e4293706b3557b74': 183,\n",
       " '205f957a78f4d695a090280e8701f7fc': 184,\n",
       " '9d64b7c987d58d759c9873657dcd9ea9': 185,\n",
       " 'b7631a5da863262d8d2f76cda783d6a6': 186,\n",
       " '399dfe21c2c8f106385c46c988bfa1a9': 187,\n",
       " '37f4c46ced3137936a0f3d64c9528499': 188,\n",
       " '085a20b961d5e9e663c0a72c7c9062ac': 189,\n",
       " '0bb2d6617a179723a0bf7d527a03db3b': 190,\n",
       " '1b1e5f2f716ef8989237f039803f73c9': 191,\n",
       " '2965d10126bea878e89ccb58af19df8d': 192,\n",
       " '11fe8808b99aeaafd7295ed56dd2bcf7': 193,\n",
       " 'b6e6c12f8c2858e6be86639bf30f5a35': 194,\n",
       " '185d7f629084b57600c7e7a30afd0f45': 195,\n",
       " '1f882d6805b5ce5e30ae3d659cd8fea9': 196,\n",
       " '7bde2ab4f66d5081a9caca6fb294d3fe': 197,\n",
       " '20766f16f887c006f5ac0aa86a3eda03': 198,\n",
       " '805ef7340c9b0b5cb1fdf761c53485fc': 199,\n",
       " '1b7b551aa421d8f4f171ff661926fc1a': 200,\n",
       " 'd69a97403ed65642f5427f4979820257': 201,\n",
       " 'fd427f67e942baeea4aedae9202fa17c': 202,\n",
       " '24e8b8c90f97d2b94f3e4cf9d84ca7a4': 203,\n",
       " '0a30d25d3edbc17aed38124672e307e5': 204,\n",
       " 'b66c4de45f6fe4c8c3b7a4be6b4b683a': 205,\n",
       " '347aa2a2ee720dd64524a97ba59c1067': 206,\n",
       " '216b9163106c16837aafb145784f79bc': 207,\n",
       " '061409fcc86bfb112f2b42b1b7a7ab30': 208,\n",
       " '1f3750c02a55ea853c9939161b55239f': 209,\n",
       " '6a32a59c113668b20a2120eeef0bdb5f': 210,\n",
       " '8d2ac536d0bc2ff0ce04bf648e998ff8': 211,\n",
       " 'cab5aab591497ef29b7e8c90731eefda': 212,\n",
       " 'c7f6756d3f7d993d69dd81bf84508b60': 213,\n",
       " 'e0c2053d200ad3f4961a25dc60a1f9c9': 214,\n",
       " 'e5c8318b50424c4b5c86a5f31516f3b7': 215,\n",
       " '382fb8dc0bd7eb9abe5d6cac0d482c5b': 216,\n",
       " '95856afd1e945024497ffe7aa51bde79': 217,\n",
       " '7fb0fe19cfd40903f5c6cf74555482db': 218,\n",
       " 'e332ea0a0e389c06b1db4aeba853d833': 219,\n",
       " '14db31eb6abc46a97081114f0d90e049': 220,\n",
       " '219477ee6abeb91f681610691d1862eb': 221,\n",
       " '0fb0add6855833f6a3894f372a4133e8': 222,\n",
       " 'bd17bdd81d0d41fa4d9d99de8c3195d5': 223,\n",
       " '82f8d139b43f857684a07087b6e9e0d9': 224,\n",
       " 'b18e361ed4eec19af56d873007cd81df': 225,\n",
       " '803bd48c6b1dae2c154f032c98da5aa3': 226,\n",
       " '302264e9d4b8ffd83b7727d166d7edc2': 227,\n",
       " 'da0526b5c8d8ce08cc45514e1b177cf3': 228,\n",
       " '4cba377d41266bb8ae40482af73100b6': 229,\n",
       " 'e75795430eab27752ac1fc5a79d019d8': 230,\n",
       " 'cbf60b04251daa14736abadc027a6ac3': 231,\n",
       " '90ce60393d5fef1c3f48e257dfd41280': 232,\n",
       " '2e51f504927225dcda6820d2e66923e4': 233,\n",
       " 'd68e29ea2e28c422dd340d359495333b': 234,\n",
       " '916e2b8dd5f0add2b2292cb565ffe090': 235,\n",
       " 'db1725ca44489bacef717a17dd10eb71': 236,\n",
       " 'adb7a4a8eeb22057d2141bb525552ebe': 237,\n",
       " '71800ed8ebf3b1de7e96cfffa9896f24': 238,\n",
       " 'f23fe903cbed140b5b5276057174a916': 239,\n",
       " '6538bfd81fa8fcdcd9d73f9c1f1d41d4': 240,\n",
       " '9d14f186f642b7911d6afd535b0b2576': 241,\n",
       " 'c785bc3683634ce70291f90b77eda168': 242,\n",
       " 'c20258f52fa4cc98d0d364403417bf06': 243,\n",
       " '10756978c8884cbd72f3db336fd625c2': 244,\n",
       " '6fab64259ec12d85c798d1d09e37cc59': 245,\n",
       " '91dbbfd54893ac131f8e7c27382836d8': 246,\n",
       " 'c943c541d5783a6e5870cfb0f719b669': 247,\n",
       " 'e0d909d027d0ab37ddd225585ed99aed': 248,\n",
       " '73c058a28ee11e40ae3b0c0d75d13c4e': 249,\n",
       " 'b2c93273dc0d1a1f40e74accaf7d260b': 250,\n",
       " '5a2964ba90d7769d9716a125fe62dd2f': 251,\n",
       " '654edb5036b028ee9034f12dc76ce019': 252,\n",
       " '2baa8d64ca048398e6ca919ce006d180': 253,\n",
       " 'd1dadac40c35a2d70fed7149530059e1': 254,\n",
       " '266abc9c0f3a23c8eb1e5dec3b79bd61': 255,\n",
       " '3fdd7bc44fc142fef10c88beb926e4f9': 256,\n",
       " '3d7852292d761b742a411f81cd04c472': 257,\n",
       " '25f5cfbc77259839da556b57c9a9ede6': 258,\n",
       " '4ba344ca52ff2b8adc68054be6590adc': 259,\n",
       " '9f55acc05e0c24e11a39e67acd91d548': 260,\n",
       " 'b3f99d250edcec6068850cba15da94f8': 261,\n",
       " 'fc18f1298a6b89c1cc76b40ff1c2137c': 262,\n",
       " '718f736c958886a63b71680d2158a157': 263,\n",
       " '99e9f7dbebdacdb6e23ebdda2b75289a': 264,\n",
       " 'caf0bf79ddf0d5b8fbd42785b504699e': 265,\n",
       " 'ef18e3cb1c998cd6b3cd1f3e4ea5bdb2': 266,\n",
       " 'fa3d100f567cfd4b6663646c1ebc88a6': 267,\n",
       " 'ce82236702341ea16eea2daf1a295bdb': 268,\n",
       " 'f13a503bd6e19020a4b4c9f70980d5b6': 269,\n",
       " '5a78268b8bb057817f50d9e84651ce21': 270,\n",
       " '6c622537a0169b28856bf6e66cd4861a': 271,\n",
       " '5762309615fefdf1bdfa5edeca2be2d3': 272,\n",
       " '55986f9567f6965f8513e752f2e129c1': 273,\n",
       " '6e48f80f2d0e2c41c53f7d1b9902b9f4': 274,\n",
       " '3d9f231a2714699b86c267e27709ac9c': 275,\n",
       " '2705d7600ebbf53ef96c620f6d019e20': 276,\n",
       " 'ea5e565bbf2780dd0f2313edf8b29a16': 277,\n",
       " '6b6fb60115ddbdb60039427e85e0ffc9': 278,\n",
       " 'e44b633c4254275f80f3ce1f44a35ea0': 279,\n",
       " 'def9e8666a60b0ac2c1f2260a4299ad6': 280,\n",
       " '88b268dfa92bb63eafc27d1c66db7368': 281,\n",
       " '7a1f519068e76192ae502584406083a7': 282,\n",
       " '866890278e381624202e669f0727e767': 283,\n",
       " 'd4e2080d487416ab4e52fd47da3e7313': 284,\n",
       " '82b4e141d695a40cdd16d81937e43538': 285,\n",
       " '6b595cc5827adaef5319cfbe0cb32dfd': 286,\n",
       " '22791f1e2774cedee29d17bee285a942': 287,\n",
       " '5f2e139a2da03ae6bf858fdb42c5b330': 288,\n",
       " '8f37a0c90852be94bc74f17662a0c317': 289,\n",
       " 'be330097bf1b16f7b2746d5bc68eb140': 290,\n",
       " '4aefdf284c1b0ed55212a786c6a5801d': 291,\n",
       " 'a09031453283e8eb2373abe7345b7a73': 292,\n",
       " '24d8ebf2a00df87dd59f4e2993b90144': 293,\n",
       " 'f46d1da3e7b080ba1824c7af84c1f13d': 294,\n",
       " '0bd1bffa0abfa53990515fd933d672e2': 295,\n",
       " 'b9a21af0da0b7d627afbc807eaed632d': 296,\n",
       " 'efa071a06520a201afbe5b673cebf09c': 297,\n",
       " 'f880aece07c82fde6baa59fca96d0fff': 298,\n",
       " '957b45c71af4db81f61eb61a3a59b4ff': 299,\n",
       " '505f21e0d29c73f3bd71f52d87d95342': 300,\n",
       " 'b3c6a44631bbaf1c8e23a8a6e2b32338': 301,\n",
       " '93f7703fdb8f8a4bf54fcbb31179532a': 302,\n",
       " 'e332e3fac256d98a126629272b754ccb': 303,\n",
       " '14241d3d9f1a8348987913064248752c': 304,\n",
       " 'e16bcab5d45efede824ae9c577deedcf': 305,\n",
       " '07daf6a2dcedfc970815532b5d8d441c': 306,\n",
       " '22fe62d1ff3c4177bdacd9622c937be4': 307,\n",
       " 'df83dc34f0615d57dd34352d4a2c43f5': 308,\n",
       " '122b34470d23d3e9521a51e85468bcf9': 309,\n",
       " 'aa5621d39292e74a7eb6c8eb0ac7c8e1': 310,\n",
       " '51dd9acceabef2b1bce727aed78c5e30': 311,\n",
       " 'e48f50a47650bb4babcde082a63ef217': 312,\n",
       " '579eb71b604ba86e63a86995f48ea5c7': 313,\n",
       " 'ab4011159685ad70ab7eed7b657f82c8': 314,\n",
       " '0aea489234d7900b00c601e01c7d5108': 315,\n",
       " '066558d83d0076c484811edfc8e82ae1': 316,\n",
       " '0bf8317281cba1b1d21a7709b56460d6': 317,\n",
       " 'fe8ad5be500f0390712f5554e221d3d8': 318,\n",
       " '2374d0a58172fe8d70d7aff2ebeb1f60': 319,\n",
       " 'e5ebdfa33aa7dda2b770c976d687f234': 320,\n",
       " 'e76122ea68824ed3f09b3380dda83bd4': 321,\n",
       " '98162ef01a259d8f8925ff95a9baa515': 322,\n",
       " '29adcca76f2d79fc422d3b6c6f465080': 323,\n",
       " 'ac2dda555726348cea5658b82b10b9de': 324,\n",
       " '921946175209ba09af2acba86090a6d9': 325,\n",
       " '96b83979c32618ec60d41428707134c2': 326,\n",
       " '07f97967defe451bedcb7f6173c8bbe7': 327,\n",
       " '4374fde609146ce0be1b58c31a54a8f1': 328,\n",
       " '7208f97c3969e733b2f2789132ab6e0c': 329,\n",
       " '3eb84e8331c5505ee1c45ddd2a967a2d': 330,\n",
       " '4185f7ffaab5d25b77303fd66d01d884': 331,\n",
       " '42f699308fb1fc4f57770a030b68d640': 332,\n",
       " '94dbe92a72d7c41ad396e9e2a111ff85': 333,\n",
       " '88ca2f65ef11bfbf2021e327a8bff451': 334,\n",
       " '419e8c79dfd38cc7bf97cd044be3eec7': 335,\n",
       " 'fc92f1719686a0fb8d375c8ea789443d': 336,\n",
       " '4473945d8bd3828f7aaac63034c93a1c': 337,\n",
       " '331b7d99972a0ed9922d03ea3e5318c5': 338,\n",
       " '1dd14bba42849ef3829caf866070af13': 339,\n",
       " '9a0456c753fee58f16519c55950783b2': 340,\n",
       " '84fc451be8022655370f391ef3e22d33': 341,\n",
       " '762d1d8ae2455f85053581f53cad62c4': 342,\n",
       " '749705e16944663f105af4b4d40f6ed3': 343,\n",
       " '3f330fbc65b2285d6454abb6598325a5': 344,\n",
       " '84e80fbe619f54a63e30d808c963f59d': 345,\n",
       " 'f443a8937b56c9327d1e804b0f9b5607': 346,\n",
       " '02dff38bf023149e18c2dd8ee0d0e12c': 347,\n",
       " '60dabb3082061da8909af142828bb4b8': 348,\n",
       " '8c27e08e9bbf8919f762d9f1c2d934a6': 349,\n",
       " 'cfeac5eaea87888bf75dee44682972b6': 350,\n",
       " 'c5d13be5276ff3ed27dfeb3f18439c06': 351,\n",
       " '902ee4bf679aaab1b317a2cba77eb450': 352,\n",
       " '0534ea36b83ab3ebcbe39223e2800639': 353,\n",
       " '026c4f3727984a22ac420dd3fac7988e': 354,\n",
       " '175e6de7af2fa03a2bb5fe1d05c50431': 355,\n",
       " 'edc9f2038972408252f95dbab17b7a49': 356,\n",
       " 'ae79231fb843e5449eb8a2f8f4742b4d': 357,\n",
       " 'f168edc78050fb78eecdd7f190abc521': 358,\n",
       " '01999931f327123af4c877000b506fd4': 359,\n",
       " 'd4d84ab84d1e3fd91f8ead644ab5aca2': 360,\n",
       " 'f0da8c17f953ad5b099bff158b212522': 361,\n",
       " '62d19e2a62cd615f6eb7aa270d1224cd': 362,\n",
       " '2ca572c3105271b302f0b8c5e5d262f9': 363,\n",
       " 'f844791dd89ba34107a4743b63bf4666': 364,\n",
       " '30c62a42eb89045af7e93c7cda54d4e0': 365,\n",
       " '4dd1611d9745692af41e6d72ca581df6': 366,\n",
       " '97ede0ec13590e1742b18cd3547eadfd': 367,\n",
       " 'f77ee426a02de1ff8f77d29bc523ea74': 368,\n",
       " '3a07caf55a6914752642ff976e3822ac': 369,\n",
       " 'b2f59748a2836d8d844bbe42c69deae2': 370,\n",
       " 'e9897e608c558cc9c20e195b702c08ff': 371,\n",
       " '2925eb1b2b47d91ebb8d353c3c1465bd': 372,\n",
       " '9976b24e0c3be5d038deed21138e89c0': 373,\n",
       " '28836d7583edca0600c57a0fa6456862': 374,\n",
       " 'f03a8b3afe02d4d04fb503a9a5dff894': 375,\n",
       " '3cfc6e13b81ef2d8eff48ca64f1e793f': 376,\n",
       " '7b3caa8622ac75802c71729e3dc7cc63': 377,\n",
       " '7bc0f76f23cb21e70fc9081d6d9e170e': 378,\n",
       " '3f74367a26f002d88666b06cbc09098d': 379,\n",
       " 'e555abc96f521f8d304383f658ed5716': 380,\n",
       " '99f871fa874d089b8f532ef3736e7dd8': 381,\n",
       " '7414d2639dd3373096401b583b8f3b2f': 382,\n",
       " '44d0ff18605d13be0b0e740df5d064eb': 383,\n",
       " '57b1073c55277185780fd712070bbfcc': 384,\n",
       " 'b03818b1699231fc2fc432a2b8d2e399': 385,\n",
       " 'd684cfd6dcdded99bc2cd9f6a475ecd1': 386,\n",
       " '187d8574a5f7bdfd7c6f7dc05d2d2628': 387,\n",
       " '7b0fb822ff97626e2689329172c5da39': 388,\n",
       " '9e60a9039251f3a93e76e62e25934368': 389,\n",
       " '46ef76c53c71168c380b29650a2f9635': 390,\n",
       " 'e38dff286719745f88851e76afb70b99': 391,\n",
       " '6dad626e6638f5d66b33c6646278fb5f': 392,\n",
       " 'a55663125aab06132b4692183fc10d86': 393,\n",
       " '84d68fcb010fd7e82875134924c771ab': 394,\n",
       " '827562af816315469152d1e09058eeff': 395,\n",
       " 'a4ba7aa2d56f66a417fff86f789a435a': 396,\n",
       " '67e0928bfcfbe112328a1030a042be77': 397,\n",
       " '6c002b9c3d64e5e7a07445e1bbe723ef': 398,\n",
       " 'ec9f36f239b4c417c2e02251d8e9b817': 399,\n",
       " '35491c94dd9e05530af5d4bb639ce45b': 400,\n",
       " '95a9d79c7d4a5fc40e7d42f58ba5512e': 401,\n",
       " 'f5f886fe8556d38e863a21d4b2742b82': 402,\n",
       " '08ccd6ff307252ebbc44501e37201f7c': 403,\n",
       " '0f077b68c40a51accd5fd615c648ee0f': 404,\n",
       " 'dc501a5a0c24bb77c395e117752fddc8': 405,\n",
       " 'f5260039dacd9067b7fbb6a97f34dc21': 406,\n",
       " '60db068a09dbb5fd9c683799f56dcf14': 407,\n",
       " 'fe83176f34f675dac018abfeb2051b0f': 408,\n",
       " 'bed1aff518d16702dd2c2a9c611833f7': 409,\n",
       " 'a14980c87fdc2f1173a75a18129bbe78': 410,\n",
       " '85b5d5ad056edbc5bd67102e4f5eaa6a': 411,\n",
       " '1c2a49d5ae094abb5a4ba860b88b7391': 412,\n",
       " '208985665609614b7dd4af8c3d65b0a1': 413,\n",
       " '3b337c9d4ae63168dbf45c5544e6403a': 414,\n",
       " 'f4e2479efb5cac9771719064a1aaed4e': 415,\n",
       " '533223c4a61d7e5b18dc6d2786d51c9a': 416,\n",
       " '059432b827abe14a6e91b9b2d0694c28': 417,\n",
       " '1197a527936f7a45db69652112aa1829': 418,\n",
       " '70b0167538e08c1ca1053da151bf0b10': 419,\n",
       " '6928a811bcd22a67b01bd5c437d975ae': 420,\n",
       " '34f90e17232923bb024fb4a87125a984': 421,\n",
       " '480350215d210d5e1d049919a05aca13': 422,\n",
       " 'df375ada65c8036d39bb5624ca843581': 423,\n",
       " '39fe0f642946ee5e016e96060094da88': 424,\n",
       " '62ea2159562c1315dac30bbef8e549b5': 425,\n",
       " '50a78cea0bc94ad4f7195e714cfab519': 426,\n",
       " '2a560df780e70b5cdbaab66f4563f10b': 427,\n",
       " 'e7ff0f7b05f690b6656f87a804f2bed2': 428,\n",
       " '1da8d14de17e71f683b4b1963c624707': 429,\n",
       " '5b8baa2d00bba139423ef61e5c20228b': 430,\n",
       " '788635e4da1ed3442afd380f7eb3f6af': 431,\n",
       " '62d18faf54e2b636e3d7530750874b0c': 432,\n",
       " 'c2311311d2fd1365e948bf5a4c4e3b08': 433,\n",
       " 'eea0648f38b6dbdd7f12e6d47e0677e9': 434,\n",
       " '707c93ff48ad4f0a93cff9d3c02f9562': 435,\n",
       " '3301150f70b1cf6bb0590d548cacab8c': 436,\n",
       " '889e3ef124d484b37aef45a9a605387e': 437,\n",
       " 'a7263c2b0b4208cfb4a8d91638ecf92f': 438,\n",
       " '0bd91516fd8acf20fde3f98a3f5bd3a5': 439,\n",
       " '5a4791fc8ebe766acc37977e0eb60303': 440,\n",
       " '2a8296a13d53aae165ef9b477705c140': 441,\n",
       " 'e6f8f47a41aab72c3593303568d4e169': 442,\n",
       " 'e663a081a36e8688860bdaf6ad07f903': 443,\n",
       " '0021fd70fe9654da0544f842bc6695e2': 444,\n",
       " 'd08d5c65332581f0015e4ae929753b0e': 445,\n",
       " 'cdd49bc9fb544c91f868b76fab855a4f': 446,\n",
       " '3305c419529b399b6199bee3654ae18f': 447,\n",
       " 'ae561eb61e4a143fc248d48fdb058695': 448,\n",
       " '503804a647e927bf797f94a77351be1c': 449,\n",
       " '5e9b20d95adc57b9ae78136caac8401b': 450,\n",
       " '1d157405cf4faf4644bbbcd8407b23f4': 451,\n",
       " '597ca3de2723c528380c8dd3d580eabb': 452,\n",
       " 'c45a78f05f10169abceeb5750dbae4a5': 453,\n",
       " '6a711a42cfb2c22f99492b8e68ab1a0f': 454,\n",
       " '79166287628a0b2cb4db5221fb66228a': 455,\n",
       " 'dd3b6562a53032acee9ac9ac2f69729e': 456,\n",
       " '0c7d04999ac155dee64f8d79cfd8e47c': 457,\n",
       " 'e6025c9b0515c23a01a56cb4a0606ecc': 458,\n",
       " 'cf570b821e55b7c5ab7c009aac70dfb1': 459,\n",
       " '709051ec85e5c9f1b830fb4eb1af3114': 460,\n",
       " '6b1e997c379995fc7a4815b6a28918bc': 461,\n",
       " '5185deb8d6003b5a3c99072a76e3db26': 462,\n",
       " 'dba253d5f4c369ce928ed5506169376e': 463,\n",
       " '56252fd4be2ee19ee0c00501b6ef441b': 464,\n",
       " '34c110c1c797ee0870996ca7d615f2d5': 465,\n",
       " 'fd137c74fd62e0f5fc7b6318264c3400': 466,\n",
       " '49f0f3278b428644e247413ea00a4be7': 467,\n",
       " '14d5846bb2d70572d1a92e181fd2289b': 468,\n",
       " '5e334e49c9d7ea683b5af993460a190b': 469,\n",
       " 'b2934142bc8269e155a191b8d05e3d4f': 470,\n",
       " '3831d5601d03071dd925db2f3bdd6aba': 471,\n",
       " '45f26cd8f0f3e9411203176092830c1f': 472,\n",
       " 'b90d5a92f87041efb5d2daf4da059dac': 473,\n",
       " '0ba1e8498e828ebaeef8907207ac099a': 474,\n",
       " '5cc338ce1f56e359ec52363b67cc73b1': 475,\n",
       " '08ef0114aa8a9fabdb2ac6fc2a401db4': 476,\n",
       " 'd90c97d58ae510ed576d17addc0a92cb': 477,\n",
       " 'dc4b8988876081519b7362e9e80f87f0': 478,\n",
       " '07b04e647ba9dce147b0a02283ef8e47': 479,\n",
       " 'c8e1cd71c65269f7574c84ecfbc528dd': 480,\n",
       " '77e5f6753038faf30ada17b19d84626a': 481,\n",
       " '1ca4728ae5b50dadf75c55fc4ea52884': 482,\n",
       " '1b1856fec790b803ae22c9f9efcaa17d': 483,\n",
       " '7eb8fdea97c6db7069d5e81526b0aeff': 484,\n",
       " '4717a523dbbd0e70c107e2618f435970': 485,\n",
       " 'e6e9a2246726adf3cf5587732dbf1044': 486,\n",
       " 'a12ddddece31a06b674e41d00c120a35': 487,\n",
       " 'c902f019dd1eb8e540677f6a577db8e1': 488,\n",
       " 'efe777025214d34d5fcd8957a5b3d47f': 489,\n",
       " 'fb57598a328c3b633c3c26d7e72661a6': 490,\n",
       " '606665d393df61ae6174a3367b1340ac': 491,\n",
       " '28e736884bf4fb613e0622e8bc7ca08c': 492,\n",
       " '8c7a3dd545e9d8f6fee47d3a61d7c3a9': 493,\n",
       " 'fcc1e89f5a18755e626dabe018b503de': 494,\n",
       " '7681d981168ae17e235169897ba71450': 495,\n",
       " '1e4927bcf2ce852a3e6c38ea7c07a2e4': 496,\n",
       " '2b05f21917c1aa9482685fc0ffa16e23': 497,\n",
       " '7ea6757e17cb281a4dcb0e702b6364ce': 498,\n",
       " '9e02a5acc0c4e430e82e4252c1326754': 499,\n",
       " 'a1f1b2b0ee8fb247d3c38aa678ecce08': 500,\n",
       " 'e1d684055594de70eda7e54bc8e810fb': 501,\n",
       " 'e7bc79d1b2cdcdb219bb97a30e9d402a': 502,\n",
       " 'fa1a84ad6b58071b1c3df619c8954687': 503,\n",
       " 'bed8e189c7dcdd9aea270c11dd642f74': 504,\n",
       " '4562db1c952f83242ffac0021067a257': 505,\n",
       " '27c7065378209190a8fcb7298eef5822': 506,\n",
       " '4bffd99ab2436f2fa92f93a5ce01e5ca': 507,\n",
       " 'd3e82b7d1309a2a8dbb7a9983cd66bba': 508,\n",
       " 'a73050f048a09b3708d6883de83c749c': 509,\n",
       " '954cdd52814abe379962a064f52cb95f': 510,\n",
       " '3d6511713ae3a68ff1cbee38458f25f8': 511,\n",
       " '3a5a9e6f240ff3998cbe208fe4feb864': 512,\n",
       " '0676728609800ff20945022efbcd961c': 513,\n",
       " 'd21277127675b5d51225ad60ce4ab9c6': 514,\n",
       " '54c84c79d483436cf9b20dd025291d2c': 515,\n",
       " 'd2547010b6c7693bd4aab604d505b8fc': 516,\n",
       " 'ec4424adedf2ec7fc48c3bfeed54ef25': 517,\n",
       " '1090f73bb072604a7a7109d0c641306b': 518,\n",
       " 'd7d99034f478212d45ce9fac436532ef': 519,\n",
       " '6dee99cf62b0f177b4467b8c287f90f8': 520,\n",
       " 'c098a8f2bddc66cc97034adaa78d3f01': 521,\n",
       " 'a0f33ee1120e56da027bbd8ca284476d': 522,\n",
       " '1c7f503f38cb42f2f6ffd7b86155a6da': 523,\n",
       " '8956d76eb9c80eb7a93a7e230b7b7709': 524,\n",
       " '79b31030c8f937f2c0110193c9743c4b': 525,\n",
       " '69119b238204ce0022a614b2787cdeed': 526,\n",
       " 'd2e8cb42ca2e9da84cf92c8fed7a23b2': 527,\n",
       " '87196f48bb6daf0ba2e31e65d569c0a4': 528,\n",
       " 'c32ca07aa23878075ac4f49cde56e0eb': 529,\n",
       " 'f190ac15870b4870033ba81e79de06a2': 530,\n",
       " 'b4f8ff4a5bca7e0938cc63280afdf9bf': 531,\n",
       " '141639677bdd1dd5ed0705f4eb43bdc9': 532,\n",
       " '954e4b5c716b09d04ecc19b6754b9fc7': 533,\n",
       " 'b014c9d42999fef38c06192d68189984': 534,\n",
       " 'a994b0d84abcda966947a3ea0a77d8e1': 535,\n",
       " '871dd51eba004165e60c4f3738bb0892': 536,\n",
       " '2c7a9538220c7cf6da3e30ebcc0c4838': 537,\n",
       " 'fbac4b3d62bf429bbc356e4c6f45b87f': 538,\n",
       " '6f7602c534ce83d367b3c53a4f36c0b7': 539,\n",
       " 'd750c7b30e85efceb15f9838548fc085': 540,\n",
       " '4fcd26ac2390e3f54d1a72b87ba4c77c': 541,\n",
       " '7c134ea8df6ab6e78143eba0a3445e6e': 542,\n",
       " '0c883e4a18c193c84e9c4785adb4d847': 543,\n",
       " '19de7741b9d2fb317b820984cd7b46dd': 544,\n",
       " 'ec9817ef0722f3c76138dbc83228dc4c': 545,\n",
       " '3271d5953121d680d7dbd6dc636d3e5d': 546,\n",
       " '5ecdda7fe15c3714f848a4f3e877b335': 547,\n",
       " '51267820d9645e83602584a17b31de10': 548,\n",
       " '42ac663921f03535e93498584e213399': 549,\n",
       " '28434be616a48e3afd41fad989618c59': 550,\n",
       " 'bb291924c8ffd9ff2e44b1ed0f3f4ab3': 551,\n",
       " 'baf8047a1550beb98d4ec50f73dc68ef': 552,\n",
       " '684d2daf7e56a338a753a9f86406eab1': 553,\n",
       " 'a1b8ce7cb0a43f156e2eaed3bfe3a1de': 554,\n",
       " 'c74db03d9a6a4f8ba710ae90443ea5a7': 555,\n",
       " '234277677a301203b2369544d52c40a6': 556,\n",
       " 'dc50a84b1163f535cb5712627ad5074c': 557,\n",
       " '1365f5ae48dbedeb7a3eb77c544ec744': 558,\n",
       " '5c31eb0fe13a69cde0ed215a62916f2a': 559,\n",
       " '49583e3c50188987c3d4c7fa9e976ce8': 560,\n",
       " 'b876d76916a8e59fcd3a3d93df1eb074': 561,\n",
       " '8c46781ac04196a16a12d1ab3558bafd': 562,\n",
       " '1207bb574951d508de0d767f41635326': 563,\n",
       " 'db606837d7882ce41033ae5cb4e3423a': 564,\n",
       " 'a06e1d9c5a8c1153a54e4afb9283989b': 565,\n",
       " 'a9eee1b73729a160607c5207d1564910': 566,\n",
       " '0a107d4146b08e3c07cbe2732ba34412': 567,\n",
       " '8894a3672eaf305ad6b8a910f0097e6d': 568,\n",
       " 'a8364563482cbf0abf68e0723a6e9dba': 569,\n",
       " 'fac407cd3575f4e6582da2dbc8884d36': 570,\n",
       " '6ccef8d221228afc009630d87edc1d3c': 571,\n",
       " '8c80d48fa13933118eee61784a57e520': 572,\n",
       " '50059fc8ea6e4eddfe7fade624536a4b': 573,\n",
       " '7e9c391cc6a253f16a58154db5c4fc54': 574,\n",
       " 'a8995d22e8f6d654593be1b128d8dba9': 575,\n",
       " '7de85a1fc2f6a0713ebf8f6b51d64ec1': 576,\n",
       " 'aa985d8a9150f995bfaddcad6b0cd9df': 577,\n",
       " 'e92f15f0fceb73e383b19864cfc0f60d': 578,\n",
       " '509af0f77adb5aa524efa26faa303d6e': 579,\n",
       " 'da000c584e979a959ff627dd338bd19c': 580,\n",
       " 'add735def352370b54b611b0af274ffc': 581,\n",
       " '32070fc93dd29124f79b05691fdd6194': 582,\n",
       " '36737a6454f0bd9c54b66cb24cd99059': 583,\n",
       " '317ae6bdbfb3c0fb08a410f936f312a5': 584,\n",
       " 'a7c73b469f191f80f28d2cdd10d1b350': 585,\n",
       " '1873b8fb45bced826f453d98cb34f1b9': 586,\n",
       " '65496d29d1bc4e448dcedea5270d090b': 587,\n",
       " '75c29a61e7bc4edbf9cd8ca6a5700225': 588,\n",
       " 'e6b1af6e30eb55f968df5dad18ed06ca': 589,\n",
       " 'd389e44de2d8a7bcd015207a66041ff2': 590,\n",
       " '668c4590bbd9add9aa07e8b650660e10': 591,\n",
       " '2fa054198c0457a5e71d8208b0f07486': 592,\n",
       " 'd36fa40929b1f8432bbe41cedba6be88': 593,\n",
       " '8ef8fb045f20239d5571502015983813': 594,\n",
       " '7f0e4b0c2a2e9fe80cc1f91ae8002b2d': 595,\n",
       " '9f817a063b3ce4df8a3c542a7a94172b': 596,\n",
       " '2cbf98a57daf00598348b2713d803e5c': 597,\n",
       " 'ff8f29dc0ee3c557172c2d8bc5899ee2': 598,\n",
       " '70ceef8cb8d7badc7eb7ec3133200df3': 599,\n",
       " '2a58d1f0d5d3f8dd96c1e1db8e1b2fdb': 600,\n",
       " '5d6df9b8d1d1c23c50370c58d05e0a8e': 601,\n",
       " 'a9a8edb591ce583a63a35341f58157f9': 602,\n",
       " '195352c2c9e1731e1f89425c951ef414': 603,\n",
       " 'c769db84b715b37ed5a3413a60f9d07c': 604,\n",
       " 'dcc8a740a038183b95da8f1e5587ad76': 605,\n",
       " '52529d15654ac6bec737f9643944a4ed': 606,\n",
       " '07f6c381374a16b4009f119bfc2ed3ab': 607,\n",
       " 'bf4ea60bc9a1dbf877c6dbbc86cae6ba': 608,\n",
       " '28acae3cec911c0ed993c04886108982': 609,\n",
       " 'cc8b5b4214e63ca576ed4a31697d9b11': 610,\n",
       " '7f704dd1dd65b57fe9f6dffbe73a6151': 611,\n",
       " '1be018cc3864eb79e9a42b7bf810f9f1': 612,\n",
       " '950efcd17bfd1c64a01e17fd2f374b7b': 613,\n",
       " '6647af583068f90a3943ed6cb73a15d7': 614,\n",
       " '0972098cb169ef5713a22ed017b8cb31': 615,\n",
       " '421597a126d1b01d237f36ce2c80b1e2': 616,\n",
       " '103e799d4e406539f0568ac4afb493db': 617,\n",
       " '35d8db87b0b762ab9e37d629ee71f513': 618,\n",
       " 'fa027456957c3a7130cf98ab4b2dad7d': 619,\n",
       " 'a7ec3626e382cfb099030756b40724e3': 620,\n",
       " '8f73c388e6fe49050411090c4d286164': 621,\n",
       " 'ecb44a8ce332b3d33442a50a1417f492': 622,\n",
       " '828d7ac3f8297502a4dcdf51df40a72c': 623,\n",
       " 'ea1c9e9d8eab8d0240396d80db18db12': 624,\n",
       " 'ad9e2773dcacb3ccb9de07fc84ea855e': 625,\n",
       " '3ff5059da7d708d6025ee02e138f1cb7': 626,\n",
       " '32dafc73881ddd6e24c16fdf07f89e31': 627,\n",
       " '0a04c2c2588a2fc081aee59cf6bc478d': 628,\n",
       " '8c1f35d12a1d6dc066d93d4bf277205a': 629,\n",
       " 'cbd1705dd915139a9a40c0070cc11ecb': 630,\n",
       " '1a77c2912b7afcef9f73f042f21289de': 631,\n",
       " '33079983da11902aade9c1cc75e70dec': 632,\n",
       " '5e6abd40351c83edf1c3d18d1571ed0b': 633,\n",
       " 'ce1e4f5de564133c59f2070d751c54d6': 634,\n",
       " '9b8a43a65bc480b8ae0b53f0e04e8505': 635,\n",
       " '00099e0706a48436e7504fd1f1e27c7b': 636,\n",
       " 'e6bb291678a9164fc427ae01341a4bc4': 637,\n",
       " '42b1af092ccafcfee3a7d13e40ddf128': 638,\n",
       " '49b51d22be849f491f29f5918a0ed95a': 639,\n",
       " '4867e0cffcd8ad2ed9eff180a36823c8': 640,\n",
       " 'a63d9e026dcba74b165931fc5d5b0330': 641,\n",
       " '16af940e1686e900a6c67216ee806070': 642,\n",
       " 'bb76311f4f719f9a71cde4e6eb597539': 643,\n",
       " '67920e03d1da9639390d218a5e9a1385': 644,\n",
       " 'c74ab984bcbbc1c0c1a75e2a17edac95': 645,\n",
       " 'a6387adc54a4493376c0d12be63ba022': 646,\n",
       " '8aa464bf2b24ca086505d529ea909419': 647,\n",
       " '256220c3663234b52cceacbbf4f75ce0': 648,\n",
       " '27fe91820fc393532692382c79861a4f': 649,\n",
       " '2491d20da5ec161e80da3a9c8a9bcd23': 650,\n",
       " '806e2fb80833e0619100c6c3f0bebe79': 651,\n",
       " '7e667bc60af713bb75d9cebb8d375b16': 652,\n",
       " '342e50054d137143dbde985a2dc95d22': 653,\n",
       " 'd87c562705463564eca484cecce336a0': 654,\n",
       " 'd1614e3f05bb578b60e814fa11122a95': 655,\n",
       " '22053379487639e94f7c3a96c8ee6a38': 656,\n",
       " '61d894ad6e9de407b2266867c95e28c1': 657,\n",
       " '55bbd4a30d2630e1fadbc2f3227b3cb6': 658,\n",
       " '97ca961871b3b38f19581e5cbcc5b309': 659,\n",
       " 'c0ba8a3604aed3ae47ad485a8decee5b': 660,\n",
       " 'b954e13443b0be703af8ec99c85d693e': 661,\n",
       " 'ed7fb5c1675e11bd32644ede44adc2f4': 662,\n",
       " '34d77ccbe447a554e222732c793181b4': 663,\n",
       " '9a5e42bd2322f42062e20957beca01ef': 664,\n",
       " 'f4d580f6adba222dd45842b65d3eb104': 665,\n",
       " 'b31fc09655ff4eea89f85a93a9ddc3a3': 666,\n",
       " '8c82c42e6b95f073b187434b47edcdfe': 667,\n",
       " '71f61a8bc93e8736227595857f9a7b16': 668,\n",
       " 'e07d4aa1049f6754eadb1b3b650b0a46': 669,\n",
       " 'aa79cb86faa21560b644f3a2ae7fa5f5': 670,\n",
       " '5c6a57a7a40278b007fc06317db10c9c': 671,\n",
       " 'a26bd55840bcb219277a81026b6c578d': 672,\n",
       " 'a9072a99b027dd40633739546dee3560': 673,\n",
       " '83f246ef1ac0b0cd38e30a36bbe81469': 674,\n",
       " '8604774f3bc2d38bfdeb4dda7352bbac': 675,\n",
       " '4ae9a29bd33d2c72d76e81e2eebf2e86': 676,\n",
       " '6f3397ae70f8bc2f38488a139b0435a8': 677,\n",
       " 'b9f18f61c1fb21653d62a4a32ace8a9f': 678,\n",
       " '66e57e18d8342c3b1373a42bdafc314a': 679,\n",
       " 'f6840f0349b5f94cac7129c2873485cd': 680,\n",
       " '34cca1398ad8eea3a93e0c893a676a58': 681,\n",
       " '8c4a085791f4abde00c82e23da625e7e': 682,\n",
       " 'c6ed8f3e5956b759b34bbe461fca6108': 683,\n",
       " '2eccb9081532339bb36f977f9765ae58': 684,\n",
       " '217a985a7417e7b8ecd85e1c721c3035': 685,\n",
       " 'd52f7b8574fee279b99e64a2704cc3a0': 686,\n",
       " '75f1403a16d50f411e77ca86a019e3dd': 687,\n",
       " '2464b6ac454cac25692696324b81df1f': 688,\n",
       " '581e2299898e236c7be104b6505134f7': 689,\n",
       " 'b0922a25186eae2096a1b0abf1cc6a4c': 690,\n",
       " '37cb6d77fbfd0d4b63331497614ca919': 691,\n",
       " '4685febf6dc1cb38b859204bb3c7d891': 692,\n",
       " '1e49181afb595aedbcfa34024973bccf': 693,\n",
       " '2143ffa92eb98f7f55a4e46ff29de180': 694,\n",
       " '64c7ec7bc674f664d23bd0f798b5fc7e': 695,\n",
       " '2a52d96a823679949d4380867f12a527': 696,\n",
       " '6c592810e5dfc0cd0d208f9965517b9d': 697,\n",
       " '2689cfcdbb1eee1dd372eeccf111ebc8': 698,\n",
       " '752aa7dc52fc52b241a9560a9227f3c9': 699,\n",
       " '06babe66580e6c6693c80e95cfe1ce4d': 700,\n",
       " '5b06164ec35a46dfcfb365d8bebde6f1': 701,\n",
       " 'c31ddaef2e466b90b33800921a10bebf': 702,\n",
       " 'feb57b193d654d6fd21171d95dad70a9': 703,\n",
       " 'e8b3161ec6b52eb14e477185fbb03ba7': 704,\n",
       " '4ef0a9f64e68ada64b1ae27b089a81af': 705,\n",
       " '3fdbc6d3086e286efd4bcfc7f239283a': 706,\n",
       " '008c35baaaa6f208b3ef09b10ebc4098': 707,\n",
       " 'ad2b17391ef7e4a0b0cbb03f98dd93db': 708,\n",
       " '41ab958a5a51193da6a742be44acf505': 709,\n",
       " '2e35d72baba54f87980fa2335bc1e7e9': 710,\n",
       " '7b51dedeab0b492971d0423c35795e80': 711,\n",
       " '9dad645ef3d4ea05334ad16caa8ddc57': 712,\n",
       " '17730fe563d9ebbacd5f9746f4f28b07': 713,\n",
       " '49305185afefa86b1f1f46bd156605af': 714,\n",
       " 'b062cf5a8ae345281607c4904e0a4881': 715,\n",
       " 'e7014b6ccb7dc15bee0afa5753fd1d77': 716,\n",
       " 'b6a457de3912bf162025de45990f4771': 717,\n",
       " 'fb77f39bfc791cbeba8daa2ae2dbc435': 718,\n",
       " 'ccbfe2f9e9c373eb7f1747e2691ce6e1': 719,\n",
       " '5f8e8dcadaf71f69dfe5133baa282ecc': 720,\n",
       " '7cf94b49569fc0df9982b9b03caf04c9': 721,\n",
       " '4dda64e85fc489ec29d654b3d92ae8da': 722,\n",
       " '0c68b19cf579e7d0038c3e9f6bd94ff9': 723,\n",
       " '5e18abde83f809cbc332c50fc5e7ef13': 724,\n",
       " 'da19276d97df45e61f5a2b6d09c57389': 725,\n",
       " '9e4729ca9593ed81cb6ca953956da78f': 726,\n",
       " 'a028ee90336c8e85403745bd9a1a277d': 727,\n",
       " '75c2fa5676355f2e1dda7392bffb820b': 728,\n",
       " '1a353569213fc589bfaacdc52e1f714f': 729,\n",
       " '053fb7f6df9ed67c4bda89a317e6c128': 730,\n",
       " 'cc5c34d03ef49279ea4e77d817cdb02e': 731,\n",
       " 'd99ae2bac936534fd9c284de2d2cc365': 732,\n",
       " 'acc0aeed5a89f0dda094c403ae4f71fb': 733,\n",
       " '27d7fd179138815dd636b391868c1752': 734,\n",
       " '1f59aecce0eda39759d35883747c170a': 735,\n",
       " '8cb7b32b38dfc9fa5bd7dffab692f01b': 736,\n",
       " '0135286b9c4d512d9bd1f1e18b49ebd0': 737,\n",
       " '8c164f4073824cd1cda7eab66bc018dd': 738,\n",
       " '25625b6b29efe8ecdac82f780d973b1c': 739,\n",
       " 'd85449553b97dd31d39f32edc265c8e8': 740,\n",
       " 'f3fd94e1fc9081a34a8c782835edf63f': 741,\n",
       " '9dff34a09e0d2c5f695a9f4db852f76b': 742,\n",
       " 'e4ee9924643a0cdce74f80dff0ff42d8': 743,\n",
       " '33d66c811da2f27d6b4ed854456883c1': 744,\n",
       " '16820373264e01c735002d3b78a6540d': 745,\n",
       " '542e4253688327d8d76c7d26c32acc40': 746,\n",
       " '2a2b8393d701957e2ddcc44bd21a2b71': 747,\n",
       " '8f2914feac336a8afbe6d7db185baf80': 748,\n",
       " '16b5430cdb2418a62d09e41030ca909b': 749,\n",
       " '91c66ae3e25d8d316cca4afd84826e07': 750,\n",
       " '9f171e9c6a8bf7a0733b0ca0f0bcc2ea': 751,\n",
       " 'ab0014e152078800eb4eb206be9d166e': 752,\n",
       " '6cbd909ca8aca79613a1a888d4884440': 753,\n",
       " '5c695873c1811b6b5e0a4f5aa1cba5a1': 754,\n",
       " 'defd5c1ea208efe82e5e70330abb2949': 755,\n",
       " 'caf84614697fd5439f1e4ba424987539': 756,\n",
       " '63c6c9c981348d8e6b2ac8b015256224': 757,\n",
       " '3a71dc3c87b11ab0b5c2aa01048a60c8': 758,\n",
       " '864ad4774f6d7f962208f9c376357c2c': 759,\n",
       " 'a3b0730da3d23b1ed87f6d203317e173': 760,\n",
       " 'bdb50c21ba0a6655f1129a0c03675acf': 761,\n",
       " 'f59dafae3e9da3c05830210e177b92b7': 762,\n",
       " '893ecff4c2603377d655a0dce0f011fc': 763,\n",
       " '8ec78504522d2eb22271982b9830aebf': 764,\n",
       " '176167fa99c178b8b776a2ee63639258': 765,\n",
       " '049b268651f5e1354206cea2b27d8662': 766,\n",
       " 'a7f0cebe0f66d2a36a56bdcc5c206805': 767,\n",
       " '5eac6372426c99ff258a8bcc359d84cc': 768,\n",
       " '11bc7070cf9e304769eb8c1d284c7df8': 769,\n",
       " '84b0a30ac53d347bef6c231f79a45a5b': 770,\n",
       " '02d8c35eba673447fe373c7bd37fa722': 771,\n",
       " '0dac7bc950a83e2506a16dd9e9d78e7f': 772,\n",
       " '8fc1b10c16691adad8be421860613262': 773,\n",
       " '8d49ff8870b08aeaa203b503d798a7d4': 774,\n",
       " '170037db4b8e67cd01afdfa60c44e8b9': 775,\n",
       " '86452f07f9b40531719618ad83c37952': 776,\n",
       " '728feadc9ddae5b465a1bc3ece4ebbbb': 777,\n",
       " '8968d75253dc93b0a39e8e007f83cd51': 778,\n",
       " '33d7f32cda66a3eee1a38084bc4747c2': 779,\n",
       " '5bf1818c963f0405fd89ac7bf9073d77': 780,\n",
       " '4a57a8f9fcf40820888facfb7646e74f': 781,\n",
       " 'd5b39e8ef85802412caeeea172a0f81f': 782,\n",
       " '01c0523218455ae5cfba4ae7a80f72fc': 783,\n",
       " 'a8146e670ef40f48c57155d67dea2dcd': 784,\n",
       " 'd75a89d248ef9d9948620d96b74fa9c5': 785,\n",
       " '9689d8c24ab42a3154bc52fbb6b168a5': 786,\n",
       " '5852a6dbb0a6d57bbb00123fa64b7ffd': 787,\n",
       " 'b666e0ea09bf59d19917890354429ac5': 788,\n",
       " '76beda5c667d608491443152da2735a5': 789,\n",
       " 'c06f517e3c3c80cc207303a702721abc': 790,\n",
       " 'a6d251b6637e90090c48fcb9b333383f': 791,\n",
       " 'b91069598ffd5e4edf57ce70191fe4f9': 792,\n",
       " 'f57e5657c552931ab6b88aec50cf3c9f': 793,\n",
       " '5c3cbe829266f698820f55e4b74fe672': 794,\n",
       " 'd978bfc795b8f0dc76b5c974c355cef6': 795,\n",
       " 'ddff578ac1046b260b961c70f786fb9a': 796,\n",
       " '09a4d56b99d2687b737361b71a90d305': 797,\n",
       " 'bbcbd4ff991d31fafac6b48258ea424a': 798,\n",
       " '253830e2f879888bbe2ae2eec5bfdf96': 799,\n",
       " 'de7492927418e5aa11491edc28a601d3': 800,\n",
       " '76e987213950ba1f46c3930f6a44b157': 801,\n",
       " 'a3b488f0d072812de9dc68902de77c18': 802,\n",
       " 'a3f6e2225c715ebc51ae97dc19fb7067': 803,\n",
       " '15806591a36ef4a2402087b8ab4f1054': 804,\n",
       " '7f9ba021e70b1423f461d7415955b4cc': 805,\n",
       " '3328b72f631a0b9dcd3acd0883310f9e': 806,\n",
       " 'd05332eb99062b323b89490043f489d5': 807,\n",
       " '7dea68f6058078d75677a46955a95595': 808,\n",
       " '2917713397f8771d64b1acae5018d0d8': 809,\n",
       " '7db7cf0d8ac46686fac4f9223dbfb401': 810,\n",
       " 'a27e1d4711a4d555f7daec5d68998d45': 811,\n",
       " '86929919d6e14994e8f34f382749942e': 812,\n",
       " 'b5486f12da0b0783ff9fd8d78d56daa4': 813,\n",
       " 'bfc6b3362a9fb8f57ff8287af15d5871': 814,\n",
       " 'ce33e8bcc805b998b166d1f3949aff4a': 815,\n",
       " 'd395870efb975248709cfedc12c488e0': 816,\n",
       " 'ce6fa3516375505e0d6fa0ba1da9cf5c': 817,\n",
       " '0a2e1176694f09895581cc1a0bfe6c3a': 818,\n",
       " '3ac5a29d49b53ac3af31bb8470567134': 819,\n",
       " '813b9b4d8abea89fff2ea1ef9f6bbe40': 820,\n",
       " 'f483cde154ec9d46f52be4f3a81009ef': 821,\n",
       " '7fa112fa699f90328954b6b539c58985': 822,\n",
       " 'fb3f68279959ba2476f381d695483c10': 823,\n",
       " 'ced38cfbf0b92ed0a3f00b188c89b88f': 824,\n",
       " '010a38cbb5968d35ff1b0686b8ceac62': 825,\n",
       " '61cf81e66e1536b6da29282a77102c16': 826,\n",
       " 'a4908b343aa2767d732478820f332413': 827,\n",
       " 'b87ea8b5647e8ee7f8b061710b4ab5e4': 828,\n",
       " '80ca3c40d4288ff0f0a64cf84b9fd86a': 829,\n",
       " '4dc232b4e54a921f1dd40dfb74315b91': 830,\n",
       " 'b837a1ad211c1b69bc2baa799542a817': 831,\n",
       " '4a95bd73f89e9f39bfe52a9b4e3a5d14': 832,\n",
       " '2c31d70575b7269cce27b287e78cc735': 833,\n",
       " '26fc04925c9506843d2bac1037fee297': 834,\n",
       " '19348375e73668b8e249587a0bca2e24': 835,\n",
       " 'bb4916f260f110ca4d90af0fb97c5dba': 836,\n",
       " '3264f0ada0086fd5003ce63575625780': 837,\n",
       " '249251054444b833e7df8dc64dbb440a': 838,\n",
       " '1609899714bd36aa38ba5c95f2fe8a0e': 839,\n",
       " 'd70d3c5d2ec9eb505d7e3f6c1bfdd727': 840,\n",
       " 'ec93cda56bca84a6d0917ec9d1a3e14e': 841,\n",
       " '25db917c6364f469e92ec85b59fa6e48': 842,\n",
       " '29fa72d21b38a605c8a9c31c28b4d8fe': 843,\n",
       " 'ec450063cf3cd73fc0757132b1e72976': 844,\n",
       " '6393fa9c278cbf1f5c02578ce0265bff': 845,\n",
       " 'a268fa517207e1e929501de2346a699c': 846,\n",
       " 'db311e558ad1489f63c7ae14c19a0765': 847,\n",
       " '7a0c934eb5dc09d66a744b6a177480f8': 848,\n",
       " 'caaf1b911ae81ffe02c0e71fa3e09c22': 849,\n",
       " 'b0a9eaa6b9f906a896dc31fb0f05cad3': 850,\n",
       " '6cbbbe1b6bbecabab80e5732ff4568a9': 851,\n",
       " '5ab0906f36e67364b5c5766194ddcd35': 852,\n",
       " '09ecdb3d628bed265c1250eca848bfaa': 853,\n",
       " '0f79f774e9372843481cba269c49892e': 854,\n",
       " '370ecf3828ca7c4f44f82f945b0d2324': 855,\n",
       " '9bf2bb84263fd7a5500c11b71fff48c0': 856,\n",
       " 'e756f52bb65997cce4d42dd6e35a4940': 857,\n",
       " '43582329eabe8a078284e12bfe2158e2': 858,\n",
       " 'a29b0d1fe0f6eec2fd0f20fd3c84be39': 859,\n",
       " 'dc40935b4cd332740a69f49098297a3c': 860,\n",
       " '40172a0d5ba5cc37df5193654f74e9f0': 861,\n",
       " 'ca2e70d31ee984c294c3e5296889de77': 862,\n",
       " 'db0676647b61155e0b040f16dbe966fd': 863,\n",
       " '08557c9f88b18fe41988d1f84bedb77f': 864,\n",
       " 'cc512974d253e5c374c45ddf86cac14e': 865,\n",
       " '25cadc6a96730d218be70daef302a31c': 866,\n",
       " 'd4431fe59baa93c74997a0765de2a194': 867,\n",
       " '7badacb293df5fedc093099389213d6a': 868,\n",
       " '16bdb1f8b93653f381c254b6b86b9eaf': 869,\n",
       " 'e802a1e74d0a2edbf0972e844283f08d': 870,\n",
       " 'e7b2a040e6e3ee58f08456b7962c8df5': 871,\n",
       " 'ba643ee9fb44cb7373fb7bdf86ea63c1': 872,\n",
       " '82594cd68596c63bf9ed99c6175b8f6f': 873,\n",
       " 'ea6649e0cfb6ab1b4e2f9709853521c8': 874,\n",
       " '9f5f6b921c5ff3b4c95ae01d2d875bd7': 875,\n",
       " 'b6b8deedd2c3b1b854dc00a17ad8937e': 876,\n",
       " 'c5e78c65cb698d47d525066a78f14e12': 877,\n",
       " 'b6c59f6236dce6e2d04386c2ee7f5773': 878,\n",
       " '80fdddba216ab1332254b6d4ecfedfcd': 879,\n",
       " '4c3087ac245e4b6cfcc771776800be5b': 880,\n",
       " '44258fa90e36068a1ad9108341e93882': 881,\n",
       " 'ef85515cb1bc65fb5f90ab815b8ffa74': 882,\n",
       " '011c5e57c8ee91b0badf535366754fe2': 883,\n",
       " '4771e4d1c2dcf869ef73826f99f7d982': 884,\n",
       " '07ad52829e3153accc48b0959ea4cc80': 885,\n",
       " 'fd186ae08a2405e8a737d92f6326c932': 886,\n",
       " 'bbc3bc47af021beec99ab651e30606b9': 887,\n",
       " 'dc47b3a42cfe4e748893f4c26e0cf21a': 888,\n",
       " 'd8a84e96e06c9e0b813740961d49c420': 889,\n",
       " 'a33fa2d860733cdd6f54cf4de92715e3': 890,\n",
       " 'ad5c9c980c59d4c551edc05e97711649': 891,\n",
       " '9718e0329ae868a2b61d4f5ef8fbb62c': 892,\n",
       " 'cb894922b2f93a8305b8059fc1d8a1ee': 893,\n",
       " 'c39e40fd1cd6fb5b3b39f285dd821262': 894,\n",
       " 'b96c7ca66b39aacaf38f3d08d2769fc3': 895,\n",
       " 'd910ceca48ae1c5670204902d95ff212': 896,\n",
       " 'f534e3f8b3d13a828685f8d832c14ff1': 897,\n",
       " '8019ce476c9436e91f083647e8c44fff': 898,\n",
       " '2034ba78b1ed745043c05eea85acf1a0': 899,\n",
       " '405635542842554143884b4db0863362': 900,\n",
       " '22cb90bc77636c9e0cbf76a2c156e98a': 901,\n",
       " 'ddfebe347aa3ca1d937bbd574e418924': 902,\n",
       " 'f1cb1686efbfd9510342feb38c8c1601': 903,\n",
       " '2fa01929779c4707effd35e4f0295e3c': 904,\n",
       " 'a032a566ca4a19d71e1a0e966ab6d349': 905,\n",
       " '6122a7979f0108f3e66040c25fe09ceb': 906,\n",
       " 'd91f87766056ab5b824f09d168134d6f': 907,\n",
       " 'f2dbb91c937cf926f360e96413e2b91f': 908,\n",
       " 'b35217afe91dbf59acdee0dca76fcf62': 909,\n",
       " 'a43a3ceb05bee894c137e34552725c90': 910,\n",
       " '7f7d627bd8d4856f5f51ec08dda76a6c': 911,\n",
       " '2f4c396894ea05b5adcbeb2bc62404c9': 912,\n",
       " '7b1674e7356e9983a0e46d88e6f63785': 913,\n",
       " 'a66f3047639c2bcc252079c7a6fa3113': 914,\n",
       " '8a90ce118e60b0a214feb97077133a27': 915,\n",
       " '47de333b91a7590d631f7cc8c2140a47': 916,\n",
       " 'c51deacdba8f56e1c88dc5b000d02020': 917,\n",
       " 'db9b172007fc27925379b33642f0bed5': 918,\n",
       " '8bda52e7e207c6f4ec6e49835955cd7c': 919,\n",
       " 'd679f02aea09191f06538c21c28aa3fa': 920,\n",
       " '1287f38f4c235b74df99c06ba262997e': 921,\n",
       " 'beaaabc25461dcd461c529364011fca7': 922,\n",
       " '0418ef7166d8508900dc4cef3acd444f': 923,\n",
       " 'b864b6aa1ce48229c533316680747b75': 924,\n",
       " '9f0897cccea3d4c82ef1c29a307c53e6': 925,\n",
       " '63357b54f3994e590b1874e3c192023a': 926,\n",
       " '524d38fe1d28468e9d8a589fec84a5c4': 927,\n",
       " 'db4e9c5cc4f0603935b5dfca47f490f7': 928,\n",
       " '9aa14aedaed071baa7a0b44d90357d65': 929,\n",
       " 'e08263995ef8ea76845845b83f9deeec': 930,\n",
       " '916677cd11ba1a213e0a0315045483ca': 931,\n",
       " 'b197c1f82fa96d5bcbfaf2fc5d0d3939': 932,\n",
       " 'b39bbe3f108c465b6d363d3e58e72ace': 933,\n",
       " '796c7bbbf5948b8fbe3e8f682d4838f3': 934,\n",
       " 'f6138533acd93af43249037a7dbd510f': 935,\n",
       " 'c5b2e901bdb16906c9d8c319dfbab2e5': 936,\n",
       " '7f4f64e70965d98b42e7a4c697cfc01e': 937,\n",
       " '8cfe6057e6ebbafa2bb8ce0888ddb1a7': 938,\n",
       " '3e38349f286807fa50781bf782bfe39f': 939,\n",
       " 'a2291ec2822055409269fab2f3e0d5d5': 940,\n",
       " 'fc2fac2d86eabbd0f5df08a13d1e96e3': 941,\n",
       " 'a166253ff3378068335dfec4289509f3': 942,\n",
       " 'e0e028550d5244080762db7801875ea0': 943,\n",
       " '2ddaa8f14d7ab21c27aae5179eaf953f': 944,\n",
       " '2f667094a89966fc0ede1d566210c6bb': 945,\n",
       " '91fbd5b8963dcec072a253026b83c4a5': 946,\n",
       " '9555b1f463d2f19d9b72104d55cbf3fe': 947,\n",
       " 'ba666f3cd062a8288a6ce40b2d9d06f5': 948,\n",
       " '9b478d72674cf5bb53fb73c0b39ea0df': 949,\n",
       " 'f4c082a970e3f8ca94ad16519c4aea1f': 950,\n",
       " '347edd2143b41f4a31ae309c7a65415a': 951,\n",
       " 'a68239213fc3a8dcacc27dc12d995ce5': 952,\n",
       " '0f91fc27f96a1aef8c598d83ddee2313': 953,\n",
       " 'd1f54b92527d648ba7ef92ae9becf548': 954,\n",
       " '86e659f19c78cc879b8ea4048ddeb21b': 955,\n",
       " 'c432f7f37ef99db682bb67ab7a8d70c1': 956,\n",
       " '00d6c0346dca36e49b57d0b12d618dca': 957,\n",
       " '2f42ea9d130ea94e93dd1f6d8bcd38b8': 958,\n",
       " 'fe7339b41a8b09f7ae15675d04dd6f70': 959,\n",
       " 'a6d6fd7df215f6775e50476c28cc8c87': 960,\n",
       " '1394fbeff212dc7931e0529a0787397c': 961,\n",
       " 'a4f984d3f089a6020fa598a093f78071': 962,\n",
       " '797b52394109942ac5a37d46ef0401f1': 963,\n",
       " '0d23f6b33050ddf671171ff29531033d': 964,\n",
       " '945abb2f9ec91622aa3eeaeddd4954c8': 965,\n",
       " 'a0c2ecc4280147dc4da13bc067527bc0': 966,\n",
       " '0810de3a8cf65f5bbc27fb499862751b': 967,\n",
       " '07e594c948184fd023387064a7820c54': 968,\n",
       " '952e687373ef3c1c8b5fee177bc8b1c1': 969,\n",
       " '1cc27ca7778b04ae9c62e8486865ce8f': 970,\n",
       " '7ba5ccdef0ee2f5be7c6fbbbd3fa3279': 971,\n",
       " '2d3aaee3f1a9a22085ee432e351cb290': 972,\n",
       " '932423535915353f2c409cbf4f806fa9': 973,\n",
       " '340959239305e8c27e4ea544cd1a7730': 974,\n",
       " '7de86c9346a5fde27e8d9929ef9755bf': 975,\n",
       " '4913aee7df69c78f73682d7a752662ea': 976,\n",
       " '13e674c018a2de425043c442cef54ed9': 977,\n",
       " '32537d3b9e2d37ea99adf77f7a27c6af': 978,\n",
       " '089697e95a9a02a6f153e3a76460b94e': 979,\n",
       " '745dca1aa10484af1ae7fa35a3589187': 980,\n",
       " '187534bf3aaa4cd01de33f4c46dd0630': 981,\n",
       " '38c2e3de02aaae78d04410f27eca941d': 982,\n",
       " 'abedfcf754e7181f0e059a9ed746fd8a': 983,\n",
       " 'b2fe6f0d4c914764a7be7ddc1f6a089e': 984,\n",
       " '435c4950869386f2c2f8d9c86776f873': 985,\n",
       " 'b9035f853b90fbff88f22dc1904b4845': 986,\n",
       " '8f2648e4fa5a2733f923ba8303801cd0': 987,\n",
       " '1c1e734c0481015da3501aead859ba8f': 988,\n",
       " 'def17db6ccfd33926d0ab8a45dea428f': 989,\n",
       " 'b1c438cf318f9e249e14ae20c910f1ec': 990,\n",
       " '2b2928d611daadd1a708c1e1e312359f': 991,\n",
       " '963996bc11c41fc742f9560ffd09f5e5': 992,\n",
       " '6058a24711ada32bfd7426e0b36acf0f': 993,\n",
       " '3aaf02981dcc4fa993a7a2c8326ef1d8': 994,\n",
       " '29ae3e911bc7b549ddb36123268b3aed': 995,\n",
       " 'bd1c9b29b04b6bb046f911cc047baef9': 996,\n",
       " 'b2039dc0f6ed2822ae5116960487342a': 997,\n",
       " 'a9b1fb917e21764d53dd00cfabb3c3f5': 998,\n",
       " '080d1bda2efab3d4fc6abcebb9f5ec74': 999,\n",
       " '67bf872a9bb824aed378b32a40b0f0f1': 1000,\n",
       " ...}"
      ]
     },
     "execution_count": 68,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "customer_tel_to_id_dict = df_customer.to_dict()[\"id\"]\n",
    "customer_tel_to_id_dict"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 69,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'张艳': 1,\n",
       " '李勇': 2,\n",
       " '王平': 3,\n",
       " '李强': 4,\n",
       " '王芳': 5,\n",
       " '王军': 6,\n",
       " '李伟': 7,\n",
       " '刘洋': 8,\n",
       " '张勇': 9,\n",
       " '王勇': 10,\n",
       " '张秀英': 11,\n",
       " '王强': 12,\n",
       " '李军': 13,\n",
       " '王娟': 14,\n",
       " '张涛': 15,\n",
       " '刘芳': 16,\n",
       " '张杰': 17,\n",
       " '张静': 18,\n",
       " '王丽': 19,\n",
       " '王艳': 20,\n",
       " '张磊': 21,\n",
       " '王超': 22,\n",
       " '王杰': 23,\n",
       " '张丽': 24,\n",
       " '李静': 25,\n",
       " '王敏': 26,\n",
       " '王伟': 27,\n",
       " '王秀兰': 28,\n",
       " '李敏': 29,\n",
       " '张敏': 30}"
      ]
     },
     "execution_count": 69,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#salesstaff_name --->salesstaff.id\n",
    "#查询salesstaff\n",
    "\n",
    "df_salesstaff = pd.read_sql(\n",
    "    \"select id ,name from salesstaff\",\n",
    "    conn2\n",
    ")\n",
    "df_salesstaff.index = df_salesstaff[\"name\"].values\n",
    "salesstaff_name_to_id_dict = df_salesstaff.to_dict()[\"id\"]\n",
    "salesstaff_name_to_id_dict"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 95,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'继续跟单': 1, '非意向用户': 2, '直接签单成功': 3, '跟单失败': 4, '跟单成功': 5, '跟踪超时': 6}"
      ]
     },
     "execution_count": 95,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# status  --->status.id\n",
    "#查询salesstaff\n",
    "df_status = pd.read_sql(\n",
    "    \"select id ,content from status\",\n",
    "    conn2\n",
    ")\n",
    "df_status.index = df_status[\"content\"].values\n",
    "status_content_to_id_dict = df_status.to_dict()[\"id\"]\n",
    "status_content_to_id_dict"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 96,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0       04875e81bd8363d57a45023dfe0f6fad\n",
       "1       664ce871652fc5000537372196d303e1\n",
       "2       c10304ba5e13f140c15d9ca2356abec2\n",
       "3       5ba2bc25041f5a246e8fcbd070afb47d\n",
       "4       fa5dfbe3e3b7bdb1fefe8c2498204d49\n",
       "                      ...               \n",
       "1066    d4cfb647b0bb60b5928c52780782e383\n",
       "1067    32eb47208d4ff7a5c5d7a2d973143cf0\n",
       "1068    4dce7718e7b02c03b7244ebcefae90ae\n",
       "1069    6acf34713bb3ffd5053f0b62ac2fae2b\n",
       "1070    910ba9edf17efd5789daa4551358aac7\n",
       "Name: tel, Length: 31149, dtype: object"
      ]
     },
     "execution_count": 96,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_mission[\"tel\"]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 97,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>tel</th>\n",
       "      <th>salesstaff_name</th>\n",
       "      <th>status</th>\n",
       "      <th>createDate</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>7409</td>\n",
       "      <td>8</td>\n",
       "      <td>1</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>19304</td>\n",
       "      <td>8</td>\n",
       "      <td>2</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>27643</td>\n",
       "      <td>8</td>\n",
       "      <td>2</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>10895</td>\n",
       "      <td>8</td>\n",
       "      <td>1</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>3678</td>\n",
       "      <td>8</td>\n",
       "      <td>2</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "     tel  salesstaff_name  status  createDate\n",
       "0   7409                8       1  2020-06-01\n",
       "1  19304                8       2  2020-06-01\n",
       "2  27643                8       2  2020-06-01\n",
       "3  10895                8       1  2020-06-01\n",
       "4   3678                8       2  2020-06-01"
      ]
     },
     "execution_count": 97,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#变更外键\n",
    "df_mission[\"tel\"] = df_mission[\"tel\"].apply(\n",
    "    lambda tel: customer_tel_to_id_dict[tel]\n",
    ")\n",
    "df_mission[\"salesstaff_name\"] = df_mission[\"salesstaff_name\"].apply(\n",
    "    lambda name : salesstaff_name_to_id_dict[name]\n",
    ")\n",
    "df_mission[\"status\"] = df_mission[\"status\"].apply(\n",
    "    lambda status : status_content_to_id_dict[status]\n",
    ")\n",
    "df_mission.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 98,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>customer_id</th>\n",
       "      <th>salesstaff_id</th>\n",
       "      <th>status_id</th>\n",
       "      <th>createDate</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>7409</td>\n",
       "      <td>8</td>\n",
       "      <td>1</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>19304</td>\n",
       "      <td>8</td>\n",
       "      <td>2</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>27643</td>\n",
       "      <td>8</td>\n",
       "      <td>2</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>10895</td>\n",
       "      <td>8</td>\n",
       "      <td>1</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>3678</td>\n",
       "      <td>8</td>\n",
       "      <td>2</td>\n",
       "      <td>2020-06-01</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   customer_id  salesstaff_id  status_id  createDate\n",
       "0         7409              8          1  2020-06-01\n",
       "1        19304              8          2  2020-06-01\n",
       "2        27643              8          2  2020-06-01\n",
       "3        10895              8          1  2020-06-01\n",
       "4         3678              8          2  2020-06-01"
      ]
     },
     "execution_count": 98,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#修改列明\n",
    "df_mission.columns = [\"customer_id\",\"salesstaff_id\",\"status_id\",\"createDate\"]\n",
    "df_mission.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "metadata": {},
   "outputs": [],
   "source": [
    "df_mission.to_sql(\n",
    "    \"mission\",\n",
    "    conn2,\n",
    "    index = False,\n",
    "    if_exists = \"append\"\n",
    ")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 99,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'C:\\\\Users\\\\Administrator\\\\traning_python\\\\8800'"
      ]
     },
     "execution_count": 99,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import os\n",
    "os.getcwd()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
